|
Yate
|
Helper class for operations with octet strings. More...
#include <yateasn.h>
Public Member Functions | |
| String | getString () |
| DataBlock & | operator= (const String &value) |
| DataBlock & | operator= (const DataBlock &value) |
| const String | toHexString () const |
| DataBlock & | fromHexString (const String &value) |
Public Member Functions inherited from DataBlock | |
| DataBlock (unsigned int overAlloc=0) | |
| DataBlock (const DataBlock &value) | |
| DataBlock (const DataBlock &value, unsigned int overAlloc) | |
| DataBlock (void *value, unsigned int len, bool copyData=true, unsigned int overAlloc=0) | |
| virtual | ~DataBlock () |
| virtual void * | getObject (const String &name) const |
| void * | data () const |
| unsigned char * | data (unsigned int offs, unsigned int len=1) const |
| int | at (unsigned int offs, int defvalue=-1) const |
| bool | null () const |
| unsigned int | length () const |
| unsigned int | overAlloc () const |
| void | overAlloc (unsigned int bytes) |
| void | clear (bool deleteData=true) |
| DataBlock & | assign (void *value, unsigned int len, bool copyData=true, unsigned int allocated=0) |
| void | append (void *value, unsigned int len) |
| void | append (const DataBlock &value) |
| void | append (const String &value) |
| void | insert (const DataBlock &value) |
| void | resize (unsigned int len) |
| void | truncate (unsigned int len) |
| void | cut (int len) |
| int | operator[] (signed int index) const |
| int | operator[] (unsigned int index) const |
| DataBlock & | operator= (const DataBlock &value) |
| DataBlock & | operator+= (const DataBlock &value) |
| DataBlock & | operator+= (const String &value) |
| bool | convert (const DataBlock &src, const String &sFormat, const String &dFormat, unsigned maxlen=0) |
| bool | unHexify (const char *data, unsigned int len, char sep) |
| bool | unHexify (const char *data, unsigned int len) |
| bool | unHexify (const String &data) |
| String | sqlEscape (char extraEsc) const |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Additional Inherited Members | |
Static Public Member Functions inherited from DataBlock | |
| static const DataBlock & | empty () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Helper class for operations with octet strings.
Helper class for operations with octet strings. Helps with conversions from String to/from DataBlock
Builed this DataBlock from a hexified string
References DataBlock::DataBlock(), and DataBlock::unHexify().
|
inline |
Get the String contained in this buffer
References DataBlock::data(), and DataBlock::length().
|
inline |
Get the content of the buffer in form of a hexified string
References DataBlock::data(), String::hexify(), and DataBlock::length().