#buffer #byte-buffer #data #io

data-buffer

A simple low-level data buffer type useful for IO and in homogeneous collections

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

#1772 in Data structures

42 downloads per month

MIT/Apache

50KB
850 lines

data-buffer

A simple low-level data buffer type useful for IO and in homogeneous collections

On crates.io On docs.rs Build status

License

This repository is licensed under either of

at your option.


lib.rs:

This crate defines a buffer data structure optimized to be written to and read from standard Vecs. 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

~235KB