# Type Definition byteorder::NetworkEndian [−] [src]

    type NetworkEndian = BigEndian;

Defines network byte order serialization.

Network byte order is defined by RFC 1700 to be big-endian, and is referred to in several protocol specifications. This type is an alias of BigEndian.

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

# Examples

Write and read `i16` numbers in big endian order:

    use byteorder::{ByteOrder, NetworkEndian, BigEndian};

    let mut buf = [0; 2];
    BigEndian::write_i16(&mut buf, -50_000);
    assert_eq!(-50_000, NetworkEndian::read_i16(&buf));

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)