Functions | |
QString | qtlHexa (const void *data, int size, Qtl::HexaFlags flags, int indent, int lineWidth, int initOffset) |
Build a multi-line string containing the hexadecimal dump of a memory area. More... | |
bool | qtlHexaDecodeAndAppend (QtlByteBlock &result, const QString &hexaString) |
Interpret a string as a sequence of hexadecimal digits. More... | |
bool qtlHexaDecodeAndAppend | ( | QtlByteBlock & | result, |
const QString & | hexaString | ||
) |
Interpret a string as a sequence of hexadecimal digits.
Interpret all hexadecimal digits in hexaString. Each pair of hexadecimal digits is interpreted as one byte value which is appended into a byte array. Space characters are ignored. Other characters generate an error.
[in,out] | result | A byte array. All decoded bytes are appended to this container. |
[in] | hexaString | The string to decode. |
QString qtlHexa | ( | const void * | data, |
int | size, | ||
Qtl::HexaFlags | flags = Qtl::HexaFlags(Qtl::HexHexa) , |
||
int | indent = 0 , |
||
int | lineWidth = Qtl::DefautLineWidth , |
||
int | initOffset = 0 |
||
) |
Build a multi-line string containing the hexadecimal dump of a memory area.
[in] | data | Starting address of the memory area to dump. |
[in] | size | Size in bytes of the memory area to dump. |
[in] | flags | A combination of option flags indicating how to format the data. |
[in] | indent | Each line is indented by this number of characters. |
[in] | lineWidth | Maximum number of characters per line. If the flag HexBytesPerLine is specified, maxLineWidth is interpreted as the number of displayed byte values per line. |
[in] | initOffset | If the flag HexOffset is specified, an offset in the memory area is displayed at the beginning of each line. In this case, initOffset specified the offset value for the first byte. |