Enum byteorder::LittleEndian [] [src]

pub enum LittleEndian {}

Defines little-endian serialization.

Note that this type has no value constructor. It is used purely at the type level.

Trait Implementations

impl ByteOrder for LittleEndian
[src]

fn read_u16(buf: &[u8]) -> u16

Reads an unsigned 16 bit integer from buf. Read more

fn read_u32(buf: &[u8]) -> u32

Reads an unsigned 32 bit integer from buf. Read more

fn read_u64(buf: &[u8]) -> u64

Reads an unsigned 64 bit integer from buf. Read more

fn read_uint(buf: &[u8], nbytes: usize) -> u64

Reads an unsigned n-bytes integer from buf. Read more

fn write_u16(buf: &mut [u8], n: u16)

Writes an unsigned 16 bit integer n to buf. Read more

fn write_u32(buf: &mut [u8], n: u32)

Writes an unsigned 32 bit integer n to buf. Read more

fn write_u64(buf: &mut [u8], n: u64)

Writes an unsigned 64 bit integer n to buf. Read more

fn write_uint(buf: &mut [u8], n: u64, nbytes: usize)

Writes an unsigned integer n to buf using only nbytes. Read more

fn read_i16(buf: &[u8]) -> i16

Reads a signed 16 bit integer from buf. Read more

fn read_i32(buf: &[u8]) -> i32

Reads a signed 32 bit integer from buf. Read more

fn read_i64(buf: &[u8]) -> i64

Reads a signed 64 bit integer from buf. Read more

fn read_int(buf: &[u8], nbytes: usize) -> i64

Reads a signed n-bytes integer from buf. Read more

fn read_f32(buf: &[u8]) -> f32

Reads a IEEE754 single-precision (4 bytes) floating point number. Read more

fn read_f64(buf: &[u8]) -> f64

Reads a IEEE754 double-precision (8 bytes) floating point number. Read more

fn write_i16(buf: &mut [u8], n: i16)

Writes a signed 16 bit integer n to buf. Read more

fn write_i32(buf: &mut [u8], n: i32)

Writes a signed 32 bit integer n to buf. Read more

fn write_i64(buf: &mut [u8], n: i64)

Writes a signed 64 bit integer n to buf. Read more

fn write_int(buf: &mut [u8], n: i64, nbytes: usize)

Writes a signed integer n to buf using only nbytes. Read more

fn write_f32(buf: &mut [u8], n: f32)

Writes a IEEE754 single-precision (4 bytes) floating point number. Read more

fn write_f64(buf: &mut [u8], n: f64)

Writes a IEEE754 double-precision (8 bytes) floating point number. Read more