Skip to main content

decode_property_reference

Function decode_property_reference 

Source
pub fn decode_property_reference(
    data: &[u8],
    offset: usize,
) -> Result<(PropertyReference, usize), Error>
Expand description

Decode one BACnetPropertyReference at offset; returns it and the offset just past it. The array index is read only when the next tag is a primitive context tag [1], so a reference may end the input or be followed by anything else.

A member whose contents run past the end of data fails with Error::BufferTooShort; any other malformed input with Error::Decoding.