MCPcopy Create free account
hub / github.com/cosdata/cosdata / BufferRegion

Class BufferRegion

src/models/buffered_io.rs:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38struct BufferRegion {
39 start: u64,
40 buffer: RwLock<Vec<u8>>,
41 dirty: AtomicBool,
42 end: AtomicUsize,
43 file: Arc<RwLock<File>>,
44}
45
46impl BufferRegion {
47 fn new(start: u64, file: Arc<RwLock<File>>, buffer_size: usize) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected