castflip 0.1.15

Library for encoding/decoding numeric variables, arrays and structures in little-endian and big-endian
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
How to convert between bytes and a `struct` (of the UDP header)
using `std::io`

The examples below use only platform independent types that implement
both trait [`std::io::Read`] and trait [`std::io::Write`] so that
these examples can run on any platform.  Needless to say, the steps in
these examples can be applied to any types that implement trait
[`std::io::Read`] and/or trait [`std::io::Write`], e.g., types for
file I/O and network I/O.

1. [Through a byte stream provided by struct `std::io::Cursor`
   ](../long_example4_1/index.html)
2. [Through a byte stream provided by a mutable byte slice `&mut [u8]`
   ](../long_example4_2/index.html)