23 #ifndef __ccxx_XDREncoder_hxx 24 #define __ccxx_XDREncoder_hxx 63 {
return(encode(static_cast<uint32_t>(v))); }
73 {
return(encode(static_cast<uint32_t>(v))); }
83 {
return(encode(static_cast<int32_t>(v))); }
93 {
return(encode(static_cast<int32_t>(v))); }
103 {
return(encode(static_cast<uint32_t>(v))); }
113 { _writer << v;
return(*
this); }
123 { _writer << v;
return(*
this); }
133 { _writer << v;
return(*
this); }
143 { _writer << v;
return(*
this); }
153 { _writer << v;
return(*
this); }
163 { _writer << v;
return(*
this); }
173 XDREncoder& encode(
const char* s,
size_t maxlen = 0);
211 #endif // __ccxx_XDREncoder_hxx XDREncoder & encode(uint32_t v)
Encode an unsigned 32-bit integer value.
Definition: XDREncoder.h++:122
XDREncoder & encode(const uint64_t &v)
Encode an unsigned 64-bit integer value.
Definition: XDREncoder.h++:142
XDREncoder & encode(byte_t v)
Encode a byte value.
Definition: XDREncoder.h++:72
XDREncoder & encode(char v)
Encode a char value.
Definition: XDREncoder.h++:82
A general-purpose variant type.
Definition: Variant.h++:46
#define COMMONCPP_API
Definition: Common.h++:126
XDREncoder & encode(bool v)
Encode a boolean value.
Definition: XDREncoder.h++:62
XDREncoder & encode(uint16_t v)
Encode an unsigned 16-bit integer value.
Definition: XDREncoder.h++:102
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
XDREncoder & encode(int32_t v)
Encode a signed 32-bit integer value.
Definition: XDREncoder.h++:112
XDREncoder & encode(const double &v)
Encode a double-precision floating point value.
Definition: XDREncoder.h++:162
An encoder for XDR, the eXternal Data Representation format.
Definition: XDREncoder.h++:40
XDREncoder & encode(const int64_t &v)
Encode a signed 64-bit integer value.
Definition: XDREncoder.h++:132
An abstract base class for data writers.
Definition: DataWriter.h++:40
Definition: AllocationMap.c++:25
XDREncoder & encode(int16_t v)
Encode a signed 16-bit integer value.
Definition: XDREncoder.h++:92
XDREncoder & encode(float v)
Encode a floating point value.
Definition: XDREncoder.h++:152
unsigned char byte_t
An unsigned 8-bit value.
Definition: Integers.h++:68