Decrypt/Buffer.h

21 lines
404 B
C

#ifndef _Buffer_h_included_
#define _Buffer_h_included_
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
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