Athena IO Library
SkywardSwordFileReader.hpp
1 #ifndef SSFILEREADER_HPP
2 #define SSFILEREADER_HPP
3 
4 #include "athena/MemoryReader.hpp"
5 
6 namespace athena
7 {
8 class SkywardSwordFile;
9 namespace io
10 {
12 {
13  MEMORYCOPYREADER_BASE();
14 public:
15 
16  SkywardSwordFileReader(atUint8* data, atUint64 length);
17  SkywardSwordFileReader(const std::string& filename);
18 
19  SkywardSwordFile* read();
20 };
21 } // io
22 } // zelda
23 
24 #endif // SSFILEREADER_HPP
atUint8 * data() const
Returns a copy of the current buffer. Changes to the copy do not affect the buffer so it's perfectly...
atUint64 length() const
Returns whether or not the stream is at the end.