#include <StdAdaptors.h>
Definition at line 1012 of file StdAdaptors.h.
◆ StdHexAdapt()
StdHexAdapt::StdHexAdapt |
( |
void * |
pData, |
|
|
size_t |
iSize |
|
) |
| |
|
inline |
◆ CompileFunc()
void StdHexAdapt::CompileFunc |
( |
StdCompiler * |
pComp | ) |
const |
|
inline |
Definition at line 1017 of file StdAdaptors.h.
1020 pComp->
Raw(pData, iSize);
1022 for (
size_t i = 0; i < iSize; i++)
1024 uint8_t *pByte =
reinterpret_cast<uint8_t *
>(pData) + i;
1025 if (!deserializing)
sprintf(szData,
"%02x", *pByte);
1030 if (sscanf(szData,
"%02x", &
b) != 1)
1031 pComp->
excNotFound(i ?
"hexadecimal data: bytes missing!" :
"hexadecimal data missing!");
virtual void Raw(void *pData, size_t iSize, RawCompileType eType=RCT_Escaped)=0
virtual void String(char *szString, size_t iMaxLength, RawCompileType eType=RCT_Escaped)=0
void excNotFound(const char *szMessage,...)
virtual bool isDeserializer()
References b, StdCompiler::excNotFound(), StdCompiler::isDeserializer(), iSize, StdCompiler::isVerbose(), StdCompiler::Raw(), StdCompiler::RCT_Idtf, sprintf, and StdCompiler::String().
The documentation for this class was generated from the following file: