#ifndef BELL_BINARY_READER_H #define BELL_BINARY_READER_H #include #include #include #include #include #include #include "ByteStream.h" namespace bell { class BinaryReader { std::shared_ptr stream; size_t currentPos = 0; public: BinaryReader(std::shared_ptr stream); int32_t readInt(); int16_t readShort(); uint32_t readUInt(); long long readLong(); void close(); uint8_t readByte(); size_t size(); size_t position(); std::vector readBytes(size_t); void skip(size_t); }; } #endif