26 static const char *
msg_error_seek =
"DDS: trying to seek beyond end of stream (corrupt file?)";
27 static const char *
msg_error_read =
"DDS: trying to read beyond end of stream (corrupt file?)";
62 memcpy(&i, mem.
mem + mem.
pos, 8);
73 memcpy(&i, mem.
mem + mem.
pos, 4);
84 memcpy(&i, mem.
mem + mem.
pos, 2);
95 i = (mem.
mem + mem.
pos)[0];
106 memcpy(i, mem.
mem + mem.
pos, cnt);
static const char * msg_error_read
bool is_read_within_bounds(const Stream &mem, unsigned int cnt)
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)