Function ouster::sdk::core::uint_view

Function Documentation

FieldView ouster::sdk::core::uint_view(const FieldView &other)

Acquire a uintXX_t reinterpreted view of the matching type size.

Useful for memory related operations like parsing and compression.

WARNING: reinterprets the type skipping type safety checks, exercise caution

Throws:
  • std::invalid_argument – if other is not an array view

  • std::invalid_argument – if other is an array view of custom POD types that do not match any uintXX_t dimensions

Parameters:

other[in] view to interpret

Returns:

reinterpreted view of uint8_t, uint16_t, uint32_t or uint64_t type