Prepare for macro refactoring
This commit is contained in:
parent
9e0e8f3345
commit
d3e5efe834
43 changed files with 2337 additions and 2309 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue