Prepare for macro refactoring

This commit is contained in:
cam900 2022-04-10 14:01:55 +09:00
parent 9e0e8f3345
commit d3e5efe834
43 changed files with 2337 additions and 2309 deletions

View file

@ -24,6 +24,11 @@
#include <stdint.h>
#include "../ta-utils.h"
enum Endianness {
LittleEndian=0,
BigEndian
};
class SafeReader;
struct EndOfFileException {
@ -46,6 +51,7 @@ class SafeReader {
size_t size();
int read(void* where, size_t count);
template<typename T> int readByte(T* where, size_t count, unsigned char byte=sizeof(T), Endianness endianness=LittleEndian);
// these functions may throw EndOfFileException.
signed char readC();