Struct VarOffsetStruct::OffsetLen

Nested Relationships

This struct is a nested type of Struct VarOffsetStruct.

Struct Documentation

struct OffsetLen

Tuple containing the offset, length and type index of a variable

Public Functions

inline OffsetLen(const ptrdiff_t &_offset, const size_t _len, const std::type_index _type)

Constructor

Parameters:
  • _offset – Offset of the variable within the buffer

  • _len – Length of the variables data within the buffer

  • _type – Type of the variable’s base type (does not account for whether it’s an array)

inline bool operator==(const OffsetLen &other) const

Equality operator, returns true if all 3 components match

Public Members

const ptrdiff_t offset
const size_t len
const std::type_index type