Skip to content
Snippets Groups Projects
Commit ff5cca72 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

XDR: Use stdint types for now

parent 99b66c9c
No related branches found
No related tags found
No related merge requests found
...@@ -21,16 +21,14 @@ class XDRStream { ...@@ -21,16 +21,14 @@ class XDRStream {
XDRStream & operator<<(char c); XDRStream & operator<<(char c);
XDRStream & operator<<(unsigned char c); XDRStream & operator<<(unsigned char c);
XDRStream & operator<<(unsigned short number); XDRStream & operator<<(uint16_t number);
XDRStream & operator<<(short number); XDRStream & operator<<(int16_t number);
XDRStream & operator<<(unsigned int number); XDRStream & operator<<(uint32_t number);
XDRStream & operator<<(int number); XDRStream & operator<<(int32_t number);
XDRStream & operator<<(unsigned long number); XDRStream & operator<<(uint64_t number);
XDRStream & operator<<(long number); XDRStream & operator<<(int64_t number);
XDRStream & operator<<(unsigned long long number);
XDRStream & operator<<(long long number);
XDRStream & operator<<(char const *text); 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 &)); XDRStream & operator<<(XDRStream & (*fun) (XDRStream &));
}; };
......
...@@ -82,7 +82,7 @@ XDRStream & XDRStream::operator<<(char const *data){ ...@@ -82,7 +82,7 @@ XDRStream & XDRStream::operator<<(char const *data){
return *this; return *this;
} }
template<int TSize> template<uint32_t TSize>
XDRStream & XDRStream::operator<<(char const (&data)[TSize]){ XDRStream & XDRStream::operator<<(char const (&data)[TSize]){
if (!is_fixed_length) { if (!is_fixed_length) {
*this << TSize; *this << TSize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment