#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 183 of file xmlrpc.h.
| XMLRPC::Binary::Binary | ( | const void * | buffer, |
| size_t | len | ||
| ) |
| XMLRPC::Binary::Binary | ( | const char * | base64 ) |
Definition at line 160 of file xmlrpc.cpp.
References _buffer, _len, and XMLRPC::base64_decode().
{
_buffer = base64_decode(base64, _len);
}

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


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