mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-16 13:20:48 +00:00
Fix bugs in ByteBuffer API and add BbAdvanceBuffer()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user