Enum gst_plugin::bytes::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.
Examples
Write and read u32 numbers in little endian order:
use byteorder::{ByteOrder, LittleEndian}; let mut buf = [0; 4]; LittleEndian::write_u32(&mut buf, 1_000_000); assert_eq!(1_000_000, LittleEndian::read_u32(&buf));
Trait Implementations
impl Ord for LittleEndian[src]
fn cmp(&self, __arg_0: &LittleEndian) -> Ordering[src]
impl Copy for LittleEndian[src]
impl Hash for LittleEndian[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for LittleEndian[src]
fn clone(&self) -> LittleEndian[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for LittleEndian[src]
impl PartialEq<LittleEndian> for LittleEndian[src]
fn eq(&self, __arg_0: &LittleEndian) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Debug for LittleEndian[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.
impl ByteOrder for LittleEndian[src]
fn read_u16(buf: &[u8]) -> u16[src]
fn read_u32(buf: &[u8]) -> u32[src]
fn read_u64(buf: &[u8]) -> u64[src]
fn read_uint(buf: &[u8], nbytes: usize) -> u64[src]
fn write_u16(buf: &mut [u8], n: u16)[src]
fn write_u32(buf: &mut [u8], n: u32)[src]
fn write_u64(buf: &mut [u8], n: u64)[src]
fn write_uint(buf: &mut [u8], n: u64, nbytes: usize)[src]
fn read_u16_into(src: &[u8], dst: &mut [u16])[src]
fn read_u32_into(src: &[u8], dst: &mut [u32])[src]
fn read_u64_into(src: &[u8], dst: &mut [u64])[src]
fn write_u16_into(src: &[u16], dst: &mut [u8])[src]
fn write_u32_into(src: &[u32], dst: &mut [u8])[src]
fn write_u64_into(src: &[u64], dst: &mut [u8])[src]
fn from_slice_u16(numbers: &mut [u16])[src]
fn from_slice_u32(numbers: &mut [u32])[src]
fn from_slice_u64(numbers: &mut [u64])[src]
fn from_slice_f32(numbers: &mut [f32])[src]
fn from_slice_f64(numbers: &mut [f64])[src]
impl Default for LittleEndian[src]
fn default() -> LittleEndian[src]
Returns the "default value" for a type. Read more