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 status_t XDRInPacketGetFixed (struct XDRInPacket *packet, void *buffer, size_t len); 17 status_t XDRInPacketGetDynamic (struct XDRInPacket *packet, void *buffer, size_t *_len); 18 char *XDRInPacketGetString (struct XDRInPacket *packet); 19 void XDRInPacketSetTo (struct XDRInPacket *packet, uint8 *buffer, size_t offset); 20 21 #endif 22