Skip to navigation

holoscan::schema::detail::verify_flatbuffer_root_bytes

Beta
View as Markdown
template <typename Root>
inline bool holoscan::schema::detail::verify_flatbuffer_root_bytes(
const std::span<const std::byte> bytes
) noexcept

Verify nonempty bytes as one exact generated FlatBuffers root.

Returns: Whether the bytes pass the generated verifier and exact file-identifier check.

Template parameters

Root
typename

Generated FlatBuffers root type.

Parameters

bytes
const std::span<const std::byte>

Nonempty serialized root bytes.