#include <librets/BinaryData.h>
Public Member Functions | |
| BinaryData () | |
| Default Constructor. | |
| BinaryData (unsigned char buffer[], int len) | |
| Construct and initialize from an array. | |
| int | Size () const |
| Report the size of the media object. | |
| std::string | AsString () const |
| Obtain the media as a string. | |
| const char * | AsChar () const |
| Obtain the media as an array of characters. | |
| void | Copy (unsigned char buffer[], int length) const |
| Make a copy of the data as the media object. | |
| void | ReadToEof (istreamPtr inputStream) |
| Load the data contained in the input stream as the media object. | |
The BinaryData class wraps binary data returned from the RETS server into a string.
| BinaryData | ( | ) | [inline] |
Default Constructor.
| BinaryData | ( | unsigned char | buffer[], | |
| int | len | |||
| ) |
Construct and initialize from an array.
| const char* AsChar | ( | ) | const |
Obtain the media as an array of characters.
| std::string AsString | ( | ) | const |
Obtain the media as a string.
| void Copy | ( | unsigned char | buffer[], | |
| int | length | |||
| ) | const |
Make a copy of the data as the media object.
| buffer[] | An array of characters containing the media object. | |
| length | An int representing the length of the media object in bytes. |
| void ReadToEof | ( | istreamPtr | inputStream | ) |
Load the data contained in the input stream as the media object.
| inputStream | A pointer to the input stream. |
| int Size | ( | ) | const |
Report the size of the media object.