#ifndef _Buffer_h_included_ #define _Buffer_h_included_ #include #include #include struct buffer { uint8_t *start; size_t length; uint8_t *next; int fd; }; void Read( struct buffer *buf, size_t length, void *destination ); uint32_t Read32( struct buffer *buf ); uint16_t Read16( struct buffer *buf ); bool OpenFile( struct buffer *buf, const char *fn ); #endif