#libc #ffi #buffer #low-level #interface #reference #expect

nightly cbuffer

Low level interface to C-API's that expect a pointer/size reference to a buffer

8 releases

0.3.1 Mar 29, 2022
0.3.0 Feb 17, 2021
0.2.0 Feb 17, 2021
0.1.3 Feb 15, 2021

#39 in #expect

MIT/Apache

8KB
99 lines

Low level interface to C-API's that expect a pointer/size reference to a buffer

In many libc API's it is common to pass a pointer/size pair into a function. This describes the location and length of data to be read or written.

This library provides tools to generate such pointer/size pairs in rust. In rust these are either vectors or array of 'u8' values. Buffers used for reading data in can be defined as 'uninit_array!' to reduce the overhead of unnnecessary initialization.

Dependencies

~160KB