|
| BinDataDesc (bool ii=false, bool is=true, ByteCount b=N4) |
|
| BinDataDesc (bool ii, bool is, int b) |
|
| BinDataDesc (unsigned char c1, unsigned char c2) |
|
| BinDataDesc (const char *s) |
|
virtual | ~BinDataDesc () |
|
bool | isInteger () const |
|
bool | isSigned () const |
|
ByteCount | nrBytes () const |
|
void | set (bool ii, bool is, ByteCount b) |
|
void | set (bool ii, bool is, int b) |
|
void | setInteger (bool yn) |
|
void | setSigned (bool yn) |
|
void | setNrBytes (ByteCount n) |
|
void | setNrBytes (int n) |
|
virtual int | maxStringifiedSize () const |
|
virtual void | toString (BufferString &) const |
|
virtual void | set (const char *) |
|
virtual void | dump (unsigned char &, unsigned char &) const |
|
virtual void | set (unsigned char, unsigned char) |
|
| BinDataDesc (const signed char *) |
|
| BinDataDesc (const signed char &) |
|
| BinDataDesc (const short *) |
|
| BinDataDesc (const short &) |
|
| BinDataDesc (const int *) |
|
| BinDataDesc (const int &) |
|
| BinDataDesc (const unsigned char *) |
|
| BinDataDesc (const unsigned char &) |
|
| BinDataDesc (const unsigned short *) |
|
| BinDataDesc (const unsigned short &) |
|
| BinDataDesc (const unsigned int *) |
|
| BinDataDesc (const unsigned int &) |
|
| BinDataDesc (const float *) |
|
| BinDataDesc (const float &) |
|
| BinDataDesc (const double *) |
|
| BinDataDesc (const double &) |
|
bool | operator== (const BinDataDesc &dc) const |
|
bool | operator!= (const BinDataDesc &dc) const |
|
bool | isEqual (const BinDataDesc &dc) const |
|
int | sizeFor (int n) const |
|
virtual bool | convertsWellTo (const BinDataDesc &) 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.