SQL small int (2-bit short) binary data -> C data type converter. More...
#include <BinaryDatum.h>
Public Member Functions | |
SqlSmallInt (unsigned aBufIndex=0) | |
Constructor just sets the buffer read position for this datum. | |
virtual | ~SqlSmallInt () |
Empty virtual destructor to keep compiler happy. | |
virtual double | extractDoubleFrom (char *aBufferAry) const |
virtual unsigned long long | extractBigIntFrom (char *aBufferAry) const |
virtual unsigned | getNumBits () const |
Returns the size of the binary datum in bits. |
SQL small int (2-bit short) binary data -> C data type converter.
Definition at line 188 of file BinaryDatum.h.
SqlSmallInt::SqlSmallInt | ( | unsigned | aBufIndex = 0 |
) | [inline] |
Constructor just sets the buffer read position for this datum.
aBufIndex | Offset in buffer array where this datum exists |
Definition at line 194 of file BinaryDatum.h.
virtual SqlSmallInt::~SqlSmallInt | ( | ) | [inline, virtual] |
Empty virtual destructor to keep compiler happy.
Definition at line 197 of file BinaryDatum.h.
virtual unsigned long long SqlSmallInt::extractBigIntFrom | ( | char * | aBufferAry | ) | const [inline, virtual] |
Read binary datum at current index and return a big int representation
aBufferAry | The buffer array of binary data to be read |
Implements BinaryDatum.
Definition at line 212 of file BinaryDatum.h.
References BinaryDatum::mBufIndex.
virtual double SqlSmallInt::extractDoubleFrom | ( | char * | aBufferAry | ) | const [inline, virtual] |
Read binary datum at current index and return a double representation
aBufferAry | The buffer array of binary data to be read |
Implements BinaryDatum.
Definition at line 203 of file BinaryDatum.h.
References BinaryDatum::mBufIndex.
virtual unsigned SqlSmallInt::getNumBits | ( | ) | const [inline, virtual] |
Returns the size of the binary datum in bits.
Implements BinaryDatum.
Definition at line 218 of file BinaryDatum.h.