ps_buffer/
lib.rs

1#![allow(clippy::module_name_repetitions)]
2
3pub use constants::*;
4pub use error::BufferError;
5pub use result::BufferResult;
6pub use shared::SharedBuffer;
7pub use traits::*;
8
9mod constants;
10mod error;
11mod implementations;
12mod methods;
13mod result;
14mod shared;
15mod traits;
16
17#[must_use]
18pub struct Buffer {
19    /// This is a raw pointer to this Buffer's data.
20    ptr: *mut u8,
21    /// Buffer's allocated capacity in bytes.
22    capacity: usize,
23    /// Buffer length in bytes.
24    length: usize,
25}
26
27unsafe impl Send for Buffer {}
28unsafe impl Sync for Buffer {}