Trait little_endian::Encode [] [src]

pub trait Encode {
    fn write_le(self, into: &mut [u8]);

An encodable type.

Required Methods

Write an integer in little-endian format.

This writes self into the first n bytes (depending on the size of Self) of into in little-endian format (least significant byte first).


This will potentially panic if into is not large enough.