#include <ubinary.hh>
Public Member Functions | |
UBinary () | |
UBinary (const UBinary &b) | |
Deep copy constructor. | |
UBinary (const UImage &) | |
UBinary (const USound &) | |
UBinary & | operator= (const UBinary &b) |
Deep copy. | |
void | buildMessage () |
Build message from structures. | |
std::string | getMessage () const |
Get message extracted from structures. | |
~UBinary () | |
Frees binary buffer. | |
int | parse (const char *message, int pos, std::list< BinaryData > &bins, std::list< BinaryData >::iterator &binpos) |
Public Attributes | |
UBinaryType | type |
union { | |
struct { | |
void * data | |
binary data | |
size_t size | |
} common | |
UImage image | |
USound sound | |
}; | |
std::string | message |
Extra bin headers(everything after BIN <size> and before ';'. |
Handles its memory: the data field will be freed when the destructor is called.
Definition at line 139 of file ubinary.hh.