diff options
Diffstat (limited to 'include/object')
-rw-r--r-- | include/object/xdrinput.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/object/xdrinput.h b/include/object/xdrinput.h new file mode 100644 index 0000000..f869a13 --- /dev/null +++ b/include/object/xdrinput.h @@ -0,0 +1,22 @@ +#ifndef XDRINPUT_H +#define XDRINPUT_H + +#include <stdint.h> + +class XDRInput { + private: + XDRInput(const XDRInput& copy); + char *data; + uint32_t pos; + + public: + XDRInput(char *d) : pos(0) { data = d; } + uint32_t get_uint32(); + int32_t get_int32(); + uint64_t get_uint64(); + int64_t get_int64(); + uint32_t get_opaque_length(); + char* get_opaque(uint32_t length); +}; + +#endif |