[]Enum gst_plugin::bytes::BigEndian

pub enum BigEndian {}

Defines big-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 big endian order:

use byteorder::{ByteOrder, BigEndian};

let mut buf = [0; 4];
BigEndian::write_u32(&mut buf, 1_000_000);
assert_eq!(1_000_000, BigEndian::read_u32(&buf));

Trait Implementations

impl Eq for BigEndian

impl PartialEq<BigEndian> for BigEndian

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for BigEndian

Formats the value using the given formatter. Read more

impl Hash for BigEndian

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd<BigEndian> for BigEndian

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl ByteOrder for BigEndian

Reads an unsigned 16 bit integer from buf. Read more

Reads an unsigned 32 bit integer from buf. Read more

Reads an unsigned 64 bit integer from buf. Read more

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

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

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

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

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

Reads unsigned 16 bit integers from src into dst. Read more

Reads unsigned 32 bit integers from src into dst. Read more

Reads unsigned 64 bit integers from src into dst. Read more

Writes unsigned 16 bit integers from src into dst. Read more

Writes unsigned 32 bit integers from src into dst. Read more

Writes unsigned 64 bit integers from src into dst. Read more

Converts the given slice of unsigned 16 bit integers to a particular endianness. Read more

Converts the given slice of unsigned 32 bit integers to a particular endianness. Read more

Converts the given slice of unsigned 64 bit integers to a particular endianness. Read more

Converts the given slice of IEEE754 single-precision (4 bytes) floating point numbers to a particular endianness. Read more

Converts the given slice of IEEE754 double-precision (8 bytes) floating point numbers to a particular endianness. Read more

Reads an unsigned 24 bit integer from buf, stored in u32. Read more

Reads an unsigned 48 bit integer from buf, stored in u64. Read more

Writes an unsigned 24 bit integer n to buf, stored in u32. Read more

Writes an unsigned 48 bit integer n to buf, stored in u64. Read more

Reads a signed 16 bit integer from buf. Read more

Reads a signed 24 bit integer from buf, stored in i32. Read more

Reads a signed 32 bit integer from buf. Read more

Reads a signed 48 bit integer from buf, stored in i64. Read more

Reads a signed 64 bit integer from buf. Read more

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

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

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

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

Writes a signed 24 bit integer n to buf, stored in i32. Read more

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

Writes a signed 48 bit integer n to buf, stored in i64. Read more

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

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

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

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

Reads signed 16 bit integers from src to dst. Read more

Reads signed 32 bit integers from src into dst. Read more

Reads signed 64 bit integers from src into dst. Read more

Reads IEEE754 single-precision (4 bytes) floating point numbers from src into dst. Read more

Reads IEEE754 single-precision (4 bytes) floating point numbers from src into dst. Read more

Writes signed 16 bit integers from src into dst. Read more

Writes signed 32 bit integers from src into dst. Read more

Writes signed 64 bit integers from src into dst. Read more

Writes IEEE754 single-precision (4 bytes) floating point numbers from src into dst. Read more

Writes IEEE754 double-precision (8 bytes) floating point numbers from src into dst. Read more

Converts the given slice of signed 16 bit integers to a particular endianness. Read more

Converts the given slice of signed 32 bit integers to a particular endianness. Read more

Converts the given slice of signed 64 bit integers to a particular endianness. Read more

impl Copy for BigEndian

impl Clone for BigEndian

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for BigEndian

Returns the "default value" for a type. Read more

impl Ord for BigEndian

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations

impl Send for BigEndian

impl Sync for BigEndian

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> AnyImpl for T where
    T: Any