Skip to main content

insert_raw

Function insert_raw 

Source
pub fn insert_raw(
    start_bit: u16,
    bit_length: u8,
    byte_order: ByteOrder,
    data: &mut [u8],
    value: u64,
) -> Result<(), DbcError>
Expand description

Inserts value’s low bit_length bits per byte_order, the exact inverse of extract_raw.

§Errors

crate::DbcError::BufferTooShort when the buffer cannot hold the signal’s highest bit position — insertion never writes out of bounds.