pub fn write_target_uint(
    endianness: layout::Endian,
    mut target: &mut [u8],
    data: u128,
) -> Result<(), io::Error> {
    let len = target.len();
    match endianness {
        layout::Endian::Little => target.write_uint128::<LittleEndian>(data, len),
        layout::Endian::Big => target.write_uint128::<BigEndian>(data, len),
    }
}
////////////////////////////////////////////////////////////////////////////////
// Methods to access integers in the target endianness
////////////////////////////////////////////////////////////////////////////////
Methods to access integers in the target endianness
Methods to access integers in the target endianness
pub fn write_target_uint(
    endianness: layout::Endian,
    mut target: &mut [u8],
    data: u128,
) -> Result<(), io::Error> {
    let len = target.len();
    match endianness {
        layout::Endian::Little => target.write_uint128::<LittleEndian>(data, len),
        layout::Endian::Big => target.write_uint128::<BigEndian>(data, len),
    }
}
pub fn write_target_uint ( endianness : layout :: Endian , mut target : & mut [ u8 ] , data : u128 , ) -> Result < ( ) , io :: Error > { let len = target . len ( ) ; match endianness { layout :: Endian :: Little => target . write_uint128 :: < LittleEndian > ( data , len ) , layout :: Endian :: Big => target . write_uint128 :: < BigEndian > ( data , len ) , } }
Methods to access integers in the target endianness
Methods to access integers in the target endianness
endianness
layout::Endian
target
&mut [u8]
data
u128
endianness
layout::Endian
target
&mut [u8]
data
u128