#include <kanzi/core/util/memory_parser.hpp>
◆ MemoryParser()
Constructor.
- Parameters
-
memory | Span representing the data to be parsed. |
◆ parseUint64()
uint64_t kanzi::MemoryParser::parseUint64 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 64-bit unsigned integer value.
◆ parseInt64()
int64_t kanzi::MemoryParser::parseInt64 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 64-bit unsigned integer value.
◆ parseUint32()
uint32_t kanzi::MemoryParser::parseUint32 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 32-bit unsigned integer value.
◆ parseInt32()
int32_t kanzi::MemoryParser::parseInt32 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 32-bit signed integer value.
◆ parseUint16()
uint16_t kanzi::MemoryParser::parseUint16 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 16-bit unsigned integer value.
◆ parseInt16()
int16_t kanzi::MemoryParser::parseInt16 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 16-bit integer value.
◆ parseUint8()
uint8_t kanzi::MemoryParser::parseUint8 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 8-bit unsigned integer value.
◆ parseInt8()
int8_t kanzi::MemoryParser::parseInt8 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 8-bit integer value.
◆ parseFloat()
float kanzi::MemoryParser::parseFloat |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 32-bit floating point value.
◆ parseColorRGBA()
ColorRGBA kanzi::MemoryParser::parseColorRGBA |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- Boolean value.
◆ parseVector2()
Vector2 kanzi::MemoryParser::parseVector2 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 2-component floating point vector value.
◆ parseVector3()
Vector3 kanzi::MemoryParser::parseVector3 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 3-component floating point vector value.
◆ parseVector4()
Vector4 kanzi::MemoryParser::parseVector4 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 4-component floating point vector value.
◆ parseMatrix3x3()
Matrix3x3 kanzi::MemoryParser::parseMatrix3x3 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 3x3 floating point matrix value.
◆ parseMatrix4x4()
Matrix4x4 kanzi::MemoryParser::parseMatrix4x4 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 4x4 floating point matrix value.
◆ parseSRT2D()
Parse value from current position in the file.
- Returns
- 2D SRT value.
◆ parseSRT3D()
Parse value from current position in the file.
- Returns
- 3D SRT value.
◆ parseNullTerminatedString()
string_view kanzi::MemoryParser::parseNullTerminatedString |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- View into string value.
◆ parseData()
Parse value from current position in the file.
- Returns
- Byte span.
◆ alignToOffset()
void kanzi::MemoryParser::alignToOffset |
( |
ptrdiff_t |
alignBytes | ) |
|
|
inline |
Skip to next alignment of given bytes, relative to the beginning of the parsed data.
If alignment is already correct, the position is not moved.
- Parameters
-
alignBytes | Alignment to skip to. |
◆ skip()
void kanzi::MemoryParser::skip |
( |
size_t |
sizeBytes | ) |
|
|
inline |
Skip bytes from current location in the file.
- Parameters
-
The documentation for this class was generated from the following file: