2020-04-04 21:24:06 +02:00
|
|
|
|
|
|
|
/* 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);
|
2020-04-05 16:19:05 +02:00
|
|
|
int __stdcall Hooked_BitStream__ReadCompressed(
|
|
|
|
char *out,
|
|
|
|
unsigned char,
|
|
|
|
unsigned char);
|