libcommonc++
0.7
|
A decoder for XDR, the eXternal Data Representation format. More...
#include <XDRDecoder.h++>
Public Member Functions | |
XDRDecoder (DataReader &reader) | |
Construct a new XDRDecoder that will decode values from the given DataReader. More... | |
~XDRDecoder () | |
Destructor. More... | |
XDRDecoder & | decode (bool &v) |
Decode a boolean value. More... | |
XDRDecoder & | decode (byte_t &v) |
Decode a byte value. More... | |
XDRDecoder & | decode (char &v) |
Decode a char value. More... | |
XDRDecoder & | decode (int16_t &v) |
Decode a signed 16-bit integer value. More... | |
XDRDecoder & | decode (uint16_t &v) |
Decode an unsigned 16-bit integer value. More... | |
XDRDecoder & | decode (int32_t &v) |
Decode a signed 32-bit integer value. More... | |
XDRDecoder & | decode (uint32_t &v) |
Decode an unsigned 32-bit integer value. More... | |
XDRDecoder & | decode (int64_t &v) |
Decode a signed 64-bit integer value. More... | |
XDRDecoder & | decode (uint64_t &v) |
Decode an unsigned 64-bit integer value. More... | |
XDRDecoder & | decode (float &v) |
Decode a floating point value. More... | |
XDRDecoder & | decode (double &v) |
Decode a double precision floating point value. More... | |
XDRDecoder & | decode (char *s, size_t maxlen=0) |
Decode a string. More... | |
XDRDecoder & | decode (String &s, size_t maxlen=0) |
Decode a string. More... | |
XDRDecoder & | decode (byte_t *v, size_t len) |
Decode a block of opaque data. More... | |
XDRDecoder & | decode (Variant &v) |
Decode an arbitrary value into a Variant. More... | |
A decoder for XDR, the eXternal Data Representation format.
XDR is a scheme for encoding primitive datatypes in a platform-independent manner. For more information, see RFC 1832.
XDRDecoder | ( | DataReader & | reader | ) |
Construct a new XDRDecoder that will decode values from the given DataReader.
reader | The DataReader. |
~XDRDecoder | ( | ) |
Destructor.
|
inline |
Decode a boolean value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode a byte value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode a char value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode a signed 16-bit integer value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode an unsigned 16-bit integer value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode a signed 32-bit integer value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode an unsigned 32-bit integer value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode a signed 64-bit integer value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode an unsigned 64-bit integer value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode a floating point value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
|
inline |
Decode a double precision floating point value.
v | The value to decode into. |
IOException | If an I/O error occcurs. |
XDRDecoder & decode | ( | char * | s, |
size_t | maxlen = 0 |
||
) |
Decode a string.
s | The character array to decode into. |
maxlen | The maximum length of the string to decode. If the encoded string is longer than this length, an IOException will be thrown. |
IOException | If an I/O error occcurs. |
XDRDecoder & decode | ( | String & | s, |
size_t | maxlen = 0 |
||
) |
Decode a string.
s | The String to decode into. |
maxlen | The maximum length of the string to decode. If the encoded string is longer than this length, an IOException will be thrown. |
IOException | If an I/O error occcurs. |
XDRDecoder & decode | ( | byte_t * | v, |
size_t | len | ||
) |
Decode a block of opaque data.
v | The byte array to decode into. |
len | The number of bytes to decode. |
IOException | If an I/O error occcurs. |
XDRDecoder & decode | ( | Variant & | v | ) |
Decode an arbitrary value into a Variant.
v | The Variant to decode into. |
IOException | If an I/O error occcurs. |