#include <kanzi/core/util/memory_parser.hpp>
Constructor.
- Parameters
-
| memory | Span representing the data to be parsed. |
| uint64_t kanzi::MemoryParser::parseUint64 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 64-bit unsigned integer value.
| int64_t kanzi::MemoryParser::parseInt64 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 64-bit unsigned integer value.
| uint32_t kanzi::MemoryParser::parseUint32 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 32-bit unsigned integer value.
| int32_t kanzi::MemoryParser::parseInt32 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 32-bit signed integer value.
| uint16_t kanzi::MemoryParser::parseUint16 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 16-bit unsigned integer value.
| int16_t kanzi::MemoryParser::parseInt16 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 16-bit integer value.
| uint8_t kanzi::MemoryParser::parseUint8 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 8-bit unsigned integer value.
| int8_t kanzi::MemoryParser::parseInt8 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 8-bit integer value.
| float kanzi::MemoryParser::parseFloat |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 32-bit floating point value.
| ColorRGBA kanzi::MemoryParser::parseColorRGBA |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- Boolean value.
| Vector2 kanzi::MemoryParser::parseVector2 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 2-component floating point vector value.
| Vector3 kanzi::MemoryParser::parseVector3 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 3-component floating point vector value.
| Vector4 kanzi::MemoryParser::parseVector4 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 4-component floating point vector value.
| Matrix3x3 kanzi::MemoryParser::parseMatrix3x3 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 3x3 floating point matrix value.
| Matrix4x4 kanzi::MemoryParser::parseMatrix4x4 |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- 4x4 floating point matrix value.
Parse value from current position in the file.
- Returns
- 2D SRT value.
Parse value from current position in the file.
- Returns
- 3D SRT value.
| string_view kanzi::MemoryParser::parseNullTerminatedString |
( |
| ) |
|
|
inline |
Parse value from current position in the file.
- Returns
- View into string value.
Parse value from current position in the file.
- Returns
- Byte span.
| 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. |
| 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: