|
| BinDataDesc (bool ii, bool is, int b) |
|
| BinDataDesc (bool ii=false, bool is=true, ByteCount b=N4) |
|
| BinDataDesc (const char *s) |
|
| BinDataDesc (const double &) |
|
| BinDataDesc (const double *) |
|
| BinDataDesc (const float &) |
|
| BinDataDesc (const float *) |
|
| BinDataDesc (const int &) |
|
| BinDataDesc (const int *) |
|
| BinDataDesc (const short &) |
|
| BinDataDesc (const short *) |
|
| BinDataDesc (const signed char &) |
|
| BinDataDesc (const signed char *) |
|
| BinDataDesc (const unsigned char &) |
|
| BinDataDesc (const unsigned char *) |
|
| BinDataDesc (const unsigned int &) |
|
| BinDataDesc (const unsigned int *) |
|
| BinDataDesc (const unsigned short &) |
|
| BinDataDesc (const unsigned short *) |
|
| BinDataDesc (unsigned char c1, unsigned char c2) |
|
virtual | ~BinDataDesc () |
|
virtual bool | convertsWellTo (const BinDataDesc &) const |
|
virtual void | dump (unsigned char &, unsigned char &) const |
|
bool | isEqual (const BinDataDesc &dc) const |
|
bool | isInteger () const |
|
bool | isSigned () const |
|
virtual int | maxStringifiedSize () const |
|
ByteCount | nrBytes () const |
|
bool | operator!= (const BinDataDesc &dc) const |
|
bool | operator== (const BinDataDesc &dc) const |
|
void | set (bool ii, bool is, ByteCount b) |
|
void | set (bool ii, bool is, int b) |
|
virtual void | set (const char *) |
|
virtual void | set (unsigned char, unsigned char) |
|
void | setInteger (bool yn) |
|
void | setNrBytes (ByteCount n) |
|
void | setNrBytes (int n) |
|
void | setSigned (bool yn) |
|
int | sizeFor (int n) const |
|
virtual void | toString (BufferString &) const |
|
Description of binary data.
Binary data in 'blobs' can usually be described by only a few pieces of info. These are:
Is the data of floating point type or integer? Is the data signed or unsigned? Usually, floating point data cannot be unsigned. How big is each number in terms of bytes? This can be 1, 2, 4 or 8 bytes.
The info from this class can be stringified (user readable string) or dumped binary into two unsigned chars.
In normal work one will use the DataCharacteristics subclass, which can also provide a 'run-time' data interpreter class for fast conversion to internal data types.
<>