mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "Platform.h"
|
||||
|
||||
#define BYTE_ORDER_LITTLE 1
|
||||
#define BYTE_ORDER_BIG 2
|
||||
|
||||
typedef struct _BYTE_BUFFER {
|
||||
char* buffer;
|
||||
int offset;
|
||||
int length;
|
||||
int position;
|
||||
int byteOrder;
|
||||
} BYTE_BUFFER, *PBYTE_BUFFER;
|
||||
|
||||
void BbInitializeWrappedBuffer(PBYTE_BUFFER buff, char* data, int offset, int length, int byteOrder);
|
||||
|
||||
int BbGet(PBYTE_BUFFER buff, char *c);
|
||||
int BbGetShort(PBYTE_BUFFER buff, short *s);
|
||||
int BbGetInt(PBYTE_BUFFER buff, int *i);
|
||||
|
||||
int BbPutInt(PBYTE_BUFFER buff, int i);
|
||||
int BbPutShort(PBYTE_BUFFER buff, short s);
|
||||
int BbPut(PBYTE_BUFFER buff, char c);
|
||||
Reference in New Issue
Block a user