big merge

This commit is contained in:
Philippe G
2021-12-18 21:04:23 -08:00
parent 955692f8ad
commit 898998efb0
583 changed files with 84472 additions and 1965 deletions

View File

@@ -0,0 +1,34 @@
#ifndef BELL_BINARY_READER_H
#define BELL_BINARY_READER_H
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <memory>
#include "ByteStream.h"
namespace bell
{
class BinaryReader
{
std::shared_ptr<ByteStream> stream;
size_t currentPos = 0;
public:
BinaryReader(std::shared_ptr<ByteStream> 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<uint8_t> readBytes(size_t);
void skip(size_t);
};
}
#endif