Crate in_situ [−] [src]
In Situ Endian-independent Bytes Access
Contents
Usage
This crate is on crates.io and can be
used by adding in-situ
to the dependencies in your project's
Cargo.toml
:
[dependencies]
in-situ = "0.2"
# Optionally enable `i128_type` support on nightly Rust.
#[dependencies.in-situ]
#features = ["i128"]
and this to your crate root:
// Optionally enable `i128_type` support on nightly Rust. // Required if the `i128` feature is enabled in your `Cargo.toml`. //#![feature(i128_type)] extern crate in_situ;
Enums
Order |
Type describing the underlying byte order. |
Constants
F32 |
Size of |
F64 |
Size of |
I8 |
Size of |
I16 |
Size of |
I24 |
Size of |
I32 |
Size of |
I64 |
Size of |
U8 |
Size of |
U16 |
Size of |
U24 |
Size of |
U32 |
Size of |
U64 |
Size of |
Traits
InSitu |
Provides endian-independent immutable bytes access, thus requires methods
to be implemented detecting or hardcoding the word size and endianness. This
trait requires the |
InSituMut |
Provides endian-independent mutable bytes access, thus requires |
Raw |
Abstracts immutable as well as mutable generic bytes view types like |
RawMut |
Abstracts mutable generic bytes view types like |
Functions
aligned |
Calculates |
padding |
Calculates padding of |