Enum byteorder::BigEndian [] [src]

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 Clone for BigEndian
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for BigEndian
[src]

impl Debug for BigEndian
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for BigEndian
[src]

impl Hash for BigEndian
[src]

[src]

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

1.3.0
[src]

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

impl Ord for BigEndian
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for BigEndian
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialOrd for BigEndian
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl Default for BigEndian
[src]

[src]

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

impl ByteOrder for BigEndian
[src]

[src]

Reads an unsigned 16 bit integer from buf. Read more

[src]

Reads an unsigned 32 bit integer from buf. Read more

[src]

Reads an unsigned 64 bit integer from buf. Read more

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Reads a signed 16 bit integer from buf. Read more

[src]

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

[src]

Reads a signed 32 bit integer from buf. Read more

[src]

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

[src]

Reads a signed 64 bit integer from buf. Read more

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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