|
Dynalib Utils
|
#include <DynaBuffer.h>


Public Member Functions | |
| DynaBuffer () | |
| DynaBuffer (uint size, bool zeroOut=false) | |
| virtual | ~DynaBuffer () |
| DynaBuffer (const DynaBuffer &other) | |
| DynaBuffer * | copy () override |
| uint8_t * | getInternalTypedArray () |
| void * | getInternalRawArray () |
| uint8_t * | getInternalTypedArrayAtPos (ulong pos) |
| void | reset () |
| void | clear () |
| void | zeroFill (int fromIndex=0, int toIndex=-1) |
| bool | isDirty () |
| void | setIsDirty (bool isDirty) |
| uint | getPos () const |
| bool | setPos (uint pos) |
| uint | adjustPos (int delta) |
| bool | insertRegion (int index, int count) |
| bool | deleteRegion (int index, int count) |
| void | setElemMode (uint headerSize, uint elemSize) |
| ulong | getElemPos (int index) |
| uint | getElemCapacity () |
| uint | getElemCount () |
| bool | getHeader (uint8_t &headerBuf) |
| bool | putHeader (uint8_t &headerBuf) |
| bool | getElem (int index, uint8_t &elemBuf) |
| bool | setElem (int index, uint8_t &elemBuf) |
| bool | getNextElem (uint8_t &elemBuf) |
| bool | insertElem (int index, uint8_t &elemBuf) |
| bool | insertElems (int index, uint8_t &elemBuf, int count) |
| bool | appendElem (uint8_t &elemBuf) |
| bool | removeElem (int index, uint8_t &elemBuf) |
| bool | deleteElem (int index) |
| bool | deleteElems (int frIndex, int toIndex) |
| bool | moveElem (int index, int destIndex) |
| bool | moveElems (int frIndex, int toIndex, int destIndex) |
| bool | moveElems (int frIndex, int toIndex, DynaBuffer *dest, int destIndex) |
| Move element from one Buffer to Another one. More... | |
| void | invalidate () |
| bool | isEmpty () |
| bool | isFull () |
| bool | hasCapacity () |
| bool | hasRemainingCapacity (uint count) |
| uint | getRemainingCapacity () const |
| bool | hasRemaining (uint count) |
| uint | getRemaining () const |
| bool | requiresRemaining (uint count) |
| uint | getBufEnd () const |
| void | setBufEnd (uint count) |
| uint | getBufferSize () const |
| void | setBufferSize (uint bufSize) |
| bool | hasNextByte () |
| uint8_t | getNextByte () |
| uint8_t | popLastByte () |
| short | getNextShort () |
| ushort | getNextUShort () |
| int | getNextInt () |
| uint | getNextUInt () |
| long | getNextLong () |
| ulong | getNextULong () |
| long long | getNextLongLong () |
| ulonglong | getNextULongLong () |
| int64_t | getNextInt64 () |
| uint64_t | getNextUInt64 () |
| index_t | getNextIndex () |
| UUID | getNextUUID () |
| float | getNextFloat () |
| double | getNextDouble () |
| long double | getNextLongDouble () |
| bool | getNextString (char *buf, uint count, bool addTerm) |
| void | getNextString (char *buf, uint maxCount) |
| bool | getNextString (String &str, uint maxCount=0) |
| bool | getNextLine (String &str) |
| bool | getNextBuffer (byte *buf, uint offset, uint count) |
| bool | getNextToken (String &str, char delim, uint maxCount=0) |
| String | getBufferAsString () |
| void | _putByte (uint8_t value) |
| bool | putByte (uint8_t value) |
| bool | putShort (short value) |
| bool | putUShort (ushort value) |
| bool | putInt (int value) |
| bool | putUInt (uint value) |
| bool | putLong (long value) |
| bool | putULong (ulong value) |
| bool | putLongLong (long long value) |
| bool | putULongLong (ulonglong value) |
| bool | putInt64 (int64_t value) |
| bool | putUInt64 (uint64_t value) |
| bool | putIndex (index_t value) |
| bool | putUUID (UUID *value) |
| bool | putFloat (float value) |
| bool | putDouble (double value) |
| bool | putLongDouble (long double value) |
| bool | putString (const char *value, uint maxCount=0, bool addTerm=true) |
| bool | putString (const String &strValue, uint maxCount=0, bool addTerm=true) |
| bool | putBuffer (uint8_t *buf, uint offset, uint count) |
Static Public Attributes | |
| static bool | THROW_EXCEPTIONS = true |
| DynaBuffer::DynaBuffer | ( | ) |
|
explicit |
|
virtual |
| DynaBuffer::DynaBuffer | ( | const DynaBuffer & | other | ) |
|
inline |
| uint DynaBuffer::adjustPos | ( | int | delta | ) |
| bool DynaBuffer::appendElem | ( | uint8_t & | elemBuf | ) |
| void DynaBuffer::clear | ( | ) |
|
overridevirtual |
Implements ICopyable< DynaBuffer >.
| bool DynaBuffer::deleteElem | ( | int | index | ) |
| bool DynaBuffer::deleteElems | ( | int | frIndex, |
| int | toIndex | ||
| ) |
| bool DynaBuffer::deleteRegion | ( | int | index, |
| int | count | ||
| ) |
| uint DynaBuffer::getBufEnd | ( | ) | const |
| String DynaBuffer::getBufferAsString | ( | ) |
| uint DynaBuffer::getBufferSize | ( | ) | const |
| bool DynaBuffer::getElem | ( | int | index, |
| uint8_t & | elemBuf | ||
| ) |
| uint DynaBuffer::getElemCapacity | ( | ) |
| uint DynaBuffer::getElemCount | ( | ) |
|
inline |
| bool DynaBuffer::getHeader | ( | uint8_t & | headerBuf | ) |
|
inline |
|
inline |
|
inline |
| bool DynaBuffer::getNextBuffer | ( | byte * | buf, |
| uint | offset, | ||
| uint | count | ||
| ) |
| uint8_t DynaBuffer::getNextByte | ( | ) |
| double DynaBuffer::getNextDouble | ( | ) |
| bool DynaBuffer::getNextElem | ( | uint8_t & | elemBuf | ) |
| float DynaBuffer::getNextFloat | ( | ) |
| index_t DynaBuffer::getNextIndex | ( | ) |
| int DynaBuffer::getNextInt | ( | ) |
| int64_t DynaBuffer::getNextInt64 | ( | ) |
| bool DynaBuffer::getNextLine | ( | String & | str | ) |
| long DynaBuffer::getNextLong | ( | ) |
| long double DynaBuffer::getNextLongDouble | ( | ) |
| long long DynaBuffer::getNextLongLong | ( | ) |
| short DynaBuffer::getNextShort | ( | ) |
| bool DynaBuffer::getNextString | ( | char * | buf, |
| uint | count, | ||
| bool | addTerm | ||
| ) |
| void DynaBuffer::getNextString | ( | char * | buf, |
| uint | maxCount | ||
| ) |
| bool DynaBuffer::getNextString | ( | String & | str, |
| uint | maxCount = 0 |
||
| ) |
| bool DynaBuffer::getNextToken | ( | String & | str, |
| char | delim, | ||
| uint | maxCount = 0 |
||
| ) |
| uint DynaBuffer::getNextUInt | ( | ) |
| uint64_t DynaBuffer::getNextUInt64 | ( | ) |
| ulong DynaBuffer::getNextULong | ( | ) |
| ulonglong DynaBuffer::getNextULongLong | ( | ) |
| ushort DynaBuffer::getNextUShort | ( | ) |
| UUID DynaBuffer::getNextUUID | ( | ) |
| uint DynaBuffer::getPos | ( | ) | const |
| uint DynaBuffer::getRemaining | ( | ) | const |
| uint DynaBuffer::getRemainingCapacity | ( | ) | const |
| bool DynaBuffer::hasCapacity | ( | ) |
| bool DynaBuffer::hasNextByte | ( | ) |
| bool DynaBuffer::hasRemaining | ( | uint | count | ) |
| bool DynaBuffer::hasRemainingCapacity | ( | uint | count | ) |
| bool DynaBuffer::insertElem | ( | int | index, |
| uint8_t & | elemBuf | ||
| ) |
| bool DynaBuffer::insertElems | ( | int | index, |
| uint8_t & | elemBuf, | ||
| int | count | ||
| ) |
| bool DynaBuffer::insertRegion | ( | int | index, |
| int | count | ||
| ) |
| void DynaBuffer::invalidate | ( | ) |
| bool DynaBuffer::isDirty | ( | ) |
| bool DynaBuffer::isEmpty | ( | ) |
| bool DynaBuffer::isFull | ( | ) |
| bool DynaBuffer::moveElem | ( | int | index, |
| int | destIndex | ||
| ) |
| bool DynaBuffer::moveElems | ( | int | frIndex, |
| int | toIndex, | ||
| int | destIndex | ||
| ) |
| bool DynaBuffer::moveElems | ( | int | frIndex, |
| int | toIndex, | ||
| DynaBuffer * | dest, | ||
| int | destIndex | ||
| ) |
Move element from one Buffer to Another one.
| frIndex | starting element index in source buffer |
| toIndex | end element (cinclusive) in source buffer |
| dest | destination buffer pointer |
| destIndex | destination index int which insert he items |
| uint8_t DynaBuffer::popLastByte | ( | ) |
| bool DynaBuffer::putBuffer | ( | uint8_t * | buf, |
| uint | offset, | ||
| uint | count | ||
| ) |
| bool DynaBuffer::putByte | ( | uint8_t | value | ) |
| bool DynaBuffer::putDouble | ( | double | value | ) |
| bool DynaBuffer::putFloat | ( | float | value | ) |
| bool DynaBuffer::putHeader | ( | uint8_t & | headerBuf | ) |
| bool DynaBuffer::putIndex | ( | index_t | value | ) |
| bool DynaBuffer::putInt | ( | int | value | ) |
| bool DynaBuffer::putInt64 | ( | int64_t | value | ) |
| bool DynaBuffer::putLong | ( | long | value | ) |
| bool DynaBuffer::putLongDouble | ( | long double | value | ) |
| bool DynaBuffer::putLongLong | ( | long long | value | ) |
| bool DynaBuffer::putShort | ( | short | value | ) |
| bool DynaBuffer::putString | ( | const char * | value, |
| uint | maxCount = 0, |
||
| bool | addTerm = true |
||
| ) |
| bool DynaBuffer::putString | ( | const String & | strValue, |
| uint | maxCount = 0, |
||
| bool | addTerm = true |
||
| ) |
| bool DynaBuffer::putUInt | ( | uint | value | ) |
| bool DynaBuffer::putUInt64 | ( | uint64_t | value | ) |
| bool DynaBuffer::putULong | ( | ulong | value | ) |
| bool DynaBuffer::putULongLong | ( | ulonglong | value | ) |
| bool DynaBuffer::putUShort | ( | ushort | value | ) |
| bool DynaBuffer::putUUID | ( | UUID * | value | ) |
| bool DynaBuffer::removeElem | ( | int | index, |
| uint8_t & | elemBuf | ||
| ) |
| bool DynaBuffer::requiresRemaining | ( | uint | count | ) |
| void DynaBuffer::reset | ( | ) |
| void DynaBuffer::setBufEnd | ( | uint | count | ) |
| void DynaBuffer::setBufferSize | ( | uint | bufSize | ) |
| bool DynaBuffer::setElem | ( | int | index, |
| uint8_t & | elemBuf | ||
| ) |
| void DynaBuffer::setElemMode | ( | uint | headerSize, |
| uint | elemSize | ||
| ) |
| void DynaBuffer::setIsDirty | ( | bool | isDirty | ) |
| bool DynaBuffer::setPos | ( | uint | pos | ) |
| void DynaBuffer::zeroFill | ( | int | fromIndex = 0, |
| int | toIndex = -1 |
||
| ) |
|
static |
1.8.13