samp-re/bitstream.h

24 lines
444 B
C
Raw Normal View History

/* vim: set filetype=c ts=8 noexpandtab: */
#pragma pack(push,1)
struct CBitStream {
int numberOfBitsUsed;
int numberOfBitsAllocated;
int readOffset;
char *ptrData;
char copyData;
char stackData[256];
};
#pragma pack(pop)
void __stdcall BitStream__ctor(
struct CBitStream *this,
char *buffer,
int lengthInBytes,
char copyData);
void __stdcall BitStream__dtor();
int __stdcall BitStream__Read(struct CBitStream *this, char *out);