16 unstable releases (7 breaking)
0.8.0 | Dec 18, 2019 |
---|---|
0.7.0 | Aug 20, 2019 |
0.5.1 | May 21, 2019 |
0.5.0 | Mar 5, 2019 |
0.4.2 | Nov 10, 2018 |
#2029 in Data structures
50KB
850 lines
data-buffer
A simple low-level data buffer type useful for IO and in homogeneous collections
License
This repository is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
lib.rs
:
This crate defines a buffer data structure optimized to be written to and read from standard
Vec
s. DataBuffer
is particularly useful when dealing with data whose type is determined at
run time. Note that data is stored in the underlying byte buffers in native endian form, thus
requesting typed data from a buffer on a platform with different endianness is unsafe.
Caveats
DataBuffer
doesn't support zero-sized types.
Dependencies
~220KB