ps-buffer 0.1.0-21

aligned heap buffer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::sync::Arc;

use crate::Buffer;

mod implementations;

/// [`SharedBuffer`] is a thread-safe shared-ownership wrapper around a [`Buffer`].
///
/// The underlying [`Buffer`] is only dropped after the underlying [`Arc`] is dropped.
pub struct SharedBuffer {
    arc: Arc<Buffer>,
    buffer: Buffer,
}