Expand description
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.
Traits§
- Resizeable
Buffer - Implemented for Buffers which can be resized
- RxBuffer
- The ‘RxBuffer’ is a used when reading data in. The contents of the buffer can be uninitialized.
- TxBuffer
- The ‘TxBuffer’ is a used when writing data out. It’s contents must be fully initialized.