Skip to navigation

holoscan::schema::detail::parse_flatbuffer_root_bytes

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

Parse one generated root from bytes that have already been verified.

Returns: Borrowed generated root, or nullptr for an empty span.

Template parameters

Root
typename

Generated FlatBuffers root type.

Parameters

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

Verified serialized root bytes, or an empty span.