/* vim: set filetype=c ts=8 noexpandtab: */ #include "common.h" #include "bitstream.h" #include "packet.h" __declspec(naked) void __stdcall BitStream__ctor( struct CBitStream *this, char *buffer, int lengthInBytes, char copyData) { _asm { pop eax pop ecx push eax mov eax, 0x44D930 jmp eax } } __declspec(naked) void __stdcall BitStream__dtor(struct CBitStream *this) { _asm { pop eax pop ecx push eax mov eax, 0x44D9B0 jmp eax } } __declspec(naked) int __stdcall BitStream__Read(struct CBitStream *this, char *out) { _asm { pop eax pop ecx push eax mov eax, 0x44D840 jmp eax } }