Skip to main content

checked_dheader_length

Function checked_dheader_length 

Source
pub fn checked_dheader_length(span: usize, at: usize) -> Result<u32, WireError>
Expand description

The value of a DHEADER for members that occupy span octets.

XTypes 1.3 §7.4.3.4.1: “O.ssize is constrained to being smaller than 4 Giga Bytes”, because a DHEADER is a UInt32.

§Errors

WireError::OutOfRange naming the offset of the DHEADER, for a span of 4 GiB or more.