12 static const char *
msg_error_seek =
"DDS: trying to seek beyond end of stream (corrupt file?)";
13 static const char *
msg_error_read =
"DDS: trying to read beyond end of stream (corrupt file?)";
48 memcpy(&i, mem.
mem + mem.
pos, 8);
59 memcpy(&i, mem.
mem + mem.
pos, 4);
70 memcpy(&i, mem.
mem + mem.
pos, 2);
81 i = (mem.
mem + mem.
pos)[0];
static const char * msg_error_read
bool is_read_within_bounds(const Stream &mem, unsigned int count)
unsigned int mem_read(Stream &mem, unsigned long long &i)
static const char * msg_error_seek
void set_failed(const char *msg)
unsigned int seek(unsigned int p)