8 #ifndef _UTILS_BINARY_H_
9 #define _UTILS_BINARY_H_
18 virtual long long tell() = 0;
19 virtual void seek(
long long pos = 0) = 0;
20 virtual bool eof() = 0;
22 virtual int8_t
read8();
37 virtual void read(
char* d,
int c) = 0;
45 int open(std::string f =
"");
47 virtual long long tell();
48 virtual void seek(
long long pos = 0);
52 virtual void read(
char* d,
int c);
62 int open(
const char* d =
nullptr,
long long max = -1);
64 virtual long long tell();
65 virtual void seek(
long long pos = 0);
69 virtual void read(
char* d,
int c);
virtual void read(char *d, int c)=0
virtual void seek(long long pos=0)
virtual void read(char *d, int c)
virtual void seek(long long pos=0)
BinaryMemory(const char *d=nullptr, long long max=-1)
virtual float readFloat()
virtual uint16_t readU16()
virtual uint32_t readU32()
virtual void seek(long long pos=0)=0
virtual long long tell()=0
virtual uint64_t readU64()
virtual void read(char *d, int c)
int open(const char *d=nullptr, long long max=-1)
int open(std::string f="")
BinaryFile(std::string f="")