diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-11-12 15:49:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-11-12 15:49:53 +0100 |
commit | ff5cca72f077dea1a4ae927dff82acbe939b1261 (patch) | |
tree | 18a83d61f29d815e4e2776b1a6d805bfc6ef3c03 /include/object | |
parent | 99b66c9c933af61e05ae59122491d5aadea52734 (diff) |
XDR: Use stdint types for now
Diffstat (limited to 'include/object')
-rw-r--r-- | include/object/xdrstream.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/object/xdrstream.h b/include/object/xdrstream.h index 2e46cad..497e143 100644 --- a/include/object/xdrstream.h +++ b/include/object/xdrstream.h @@ -21,16 +21,14 @@ class XDRStream { XDRStream & operator<<(char c); XDRStream & operator<<(unsigned char c); - XDRStream & operator<<(unsigned short number); - XDRStream & operator<<(short number); - XDRStream & operator<<(unsigned int number); - XDRStream & operator<<(int number); - XDRStream & operator<<(unsigned long number); - XDRStream & operator<<(long number); - XDRStream & operator<<(unsigned long long number); - XDRStream & operator<<(long long number); + XDRStream & operator<<(uint16_t number); + XDRStream & operator<<(int16_t number); + XDRStream & operator<<(uint32_t number); + XDRStream & operator<<(int32_t number); + XDRStream & operator<<(uint64_t number); + XDRStream & operator<<(int64_t number); XDRStream & operator<<(char const *text); - template<int TSize> XDRStream & operator<<(char const (&text)[TSize]); + template<uint32_t TSize> XDRStream & operator<<(char const (&text)[TSize]); XDRStream & operator<<(XDRStream & (*fun) (XDRStream &)); }; |