Skip to main content

from_packed_with_control

Function from_packed_with_control 

Source
pub fn from_packed_with_control(
    input: &[u8],
    length: u32,
    control: &ProductionControl<'_>,
) -> Result<Produced<BitStringValue>>
Expand description

Copy network-order packed input, discarding unused low padding bits as PostgreSQL’s binary input does. The span contains exactly the bytes needed for the logical length.