Function flatgeobuf::root_as_header

source ·
pub fn root_as_header(buf: &[u8]) -> Result<Header<'_>, InvalidFlatbuffer>
Expand description

Verifies that a buffer of bytes contains a Header and returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior use root_as_header_unchecked.