MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / capacity

Method capacity

api/src/file/pipe.rs:81–83  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

79 }
80
81 pub fn capacity(&self) -> usize {
82 self.shared.buffer.lock().capacity().get()
83 }
84
85 pub fn resize(&self, new_size: usize) -> AxResult<()> {
86 let new_size = new_size.div_ceil(PAGE_SIZE_4K).max(1) * PAGE_SIZE_4K;

Callers 2

resizeMethod · 0.80
sys_fcntlFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected