Function ouster::sdk::osf::check_prefixed_size_block_crc¶
Defined in File basics.h
Function Documentation¶
-
bool ouster::sdk::osf::check_prefixed_size_block_crc(const OsfBuffer &buf, const uint32_t buf_length = std::numeric_limits<uint32_t>::max())¶
Check the prefixed size buffer CRC32 fields.
- Parameters:
buf[in] Structured as size prefixed Flatbuffer buffer, i.e. first 4 bytes is the size of the buffer (excluding 4 bytes of the size), and the 4 bytes that follows right after the 4 + [prefixed_size] is the CRC32 bytes.
buf_length[in] Total number of bytes that can be accessed in the buffer, as a safety precaution if buffer is not well formed, or if first prefixed size bytes are broken.
- Returns:
true if CRC field is correct, false otherwise