Docs.rs
  • urex-binary-io-0.1.2
    • urex-binary-io 0.1.2
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • K0lb3
    • Dependencies
      • byteorder ^1.4.3 normal
      • half ^2.2.1 normal
      • paste ^1.0.12 normal
    • Versions
    • 79.12% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate urex_binary_io

urex_binary_io0.1.2

  • All Items

Crate Items

  • Structs
  • Enums
  • Traits

Crates

  • urex_binary_io

Crate urex_binary_io

Source
Expand description

A crate that implements endianed BinaryReaders for use in urex.

This crate provides the BinaryRead and BinaryWrite traits and three implementations of them each.

The BinaryRead and BinaryWrite traits aren’t implemented for std::io::Read and std::io::Write respectively, because they are not endian aware. Instead, they are implemented for the three endian aware structs that either set the endianness or make it variable.

The implementations are namely:

  • BinaryReaderVE, BinaryReaderLE, BinaryReaderBE
  • BinaryWriterVE, BinaryWriterLE, BinaryWriterBE.

The VE stands for variable endian, the LE stands for little-endian, and the BE stands for big-endian.

The BinaryReaderVE and BinaryWriterVE structs are flexible, allowing you to set and change the endianness at runtime. The endianness can be set by setting the endian field, which is of type Endian.
The BinaryReaderLE and BinaryWriterLE structs are restrictive, as they only allow you to read/write little-endian data.
The BinaryReaderBE and BinaryWriterBE structs are restrictive, as they only allow you to read/write big-endian data.

Structs§

BinaryReaderBE
BinaryReaderLE
BinaryReaderVE
BinaryWriterBE
BinaryWriterLE
BinaryWriterVE

Enums§

Endian
A simple enum to represent the endianness of the data.
For use with the BinaryReaderVE and BinaryReaderBE structs.

Traits§

BinaryRead
BinaryReadAlign
BinaryWrite
BinaryWriteAlign

Results

Settings
Help
    trait
    urex_binary_io::BinaryReadAlign
    method
    urex_binary_io::BinaryReadAlign::align4
    &mut BinaryReadAlign -> Result<usize>
    Align the reader to 4 bytes.
    method
    urex_binary_io::BinaryReadAlign::align8
    &mut BinaryReadAlign -> Result<usize>
    Align the reader to 8 bytes.
    method
    urex_binary_io::BinaryReadAlign::align16
    &mut BinaryReadAlign -> Result<usize>
    Align the reader to 16 bytes.
    trait method
    urex_binary_io::BinaryReadAlign::align
    &mut BinaryReadAlign, usize -> Result<usize>
    Align the reader to the given alignment and return the …
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.