#buffer #io #data

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

#173 in Asynchronous

Download history 35/week @ 2020-05-26 50/week @ 2020-06-02 6/week @ 2020-06-09 16/week @ 2020-06-16 4/week @ 2020-06-23 18/week @ 2020-06-30 18/week @ 2020-07-07 35/week @ 2020-07-14 41/week @ 2020-07-21 4/week @ 2020-07-28 17/week @ 2020-08-04 76/week @ 2020-08-11 32/week @ 2020-08-18 25/week @ 2020-08-25 45/week @ 2020-09-01 45/week @ 2020-09-08

172 downloads per month
Used in 5 crates (via vtkio)

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

~12–250KB