1 #ifndef _XDRINPACKET_H 2 3 #define _XDRINPACKET_H 4 5 #include <SupportDefs.h> 6 7 struct XDRInPacket 8 { 9 uint8 *fBuffer; 10 size_t fOffset; 11 }; 12 13 void XDRInPacketInit (struct XDRInPacket *packet); 14 void XDRInPacketDestroy (struct XDRInPacket *packet); 15 int32 XDRInPacketGetInt32 (struct XDRInPacket *packet); 16 int32 XDRInPacketGetFixed (struct XDRInPacket *packet, void *buffer, 17 size_t len); 18 size_t XDRInPacketGetDynamic (struct XDRInPacket *packet, void *buffer); 19 char *XDRInPacketGetString (struct XDRInPacket *packet); 20 void XDRInPacketSetTo (struct XDRInPacket *packet, uint8 *buffer, size_t offset); 21 22 #endif 23