Fix bugs in ByteBuffer API and add BbAdvanceBuffer()

This commit is contained in:
Cameron Gutman
2019-02-08 19:01:51 -08:00
parent dc21e28e1f
commit 924fdaf2db
2 changed files with 14 additions and 5 deletions

View File

@@ -19,13 +19,13 @@
typedef struct _BYTE_BUFFER {
char* buffer;
unsigned int offset;
unsigned int length;
unsigned int position;
unsigned int byteOrder;
} BYTE_BUFFER, *PBYTE_BUFFER;
void BbInitializeWrappedBuffer(PBYTE_BUFFER buff, char* data, int offset, int length, int byteOrder);
int BbAdvanceBuffer(PBYTE_BUFFER buff, int offset);
int BbGet(PBYTE_BUFFER buff, char* c);
int BbGetShort(PBYTE_BUFFER buff, short* s);