#include <xmlrpc.h>

Public Member Functions | |
| Binary (const void *buffer, size_t len) | |
| Binary (const char *base64) | |
| Binary (const Binary &other) | |
| ~Binary () | |
| string | str () const |
Public Attributes | |
| void * | _buffer |
| size_t | _len |
Definition at line 180 of file xmlrpc.h.
| Binary::Binary | ( | const void * | buffer, |
| size_t | len | ||
| ) |
| Binary::Binary | ( | const char * | base64 ) |
Definition at line 157 of file xmlrpc.cpp.
References _buffer, _len, and base64_decode().
{
_buffer = base64_decode(base64, _len);
}

| Binary::Binary | ( | const Binary & | other ) |
| string Binary::str | ( | ) | const |
Definition at line 169 of file xmlrpc.cpp.
References _buffer, _len, and base64_encode().
Referenced by client_test(), XMLRPCCall::operator%(), server_test(), and XMLRPCResponse::set_binary().
{
char* s = base64_encode(_buffer, _len);
string ret = s;
free(s);
return ret;
}


| void* Binary::_buffer |
| size_t Binary::_len |
1.7.2