MCPcopy Create free account
hub / github.com/NetSys/NetBricks / wrapped_write

Method wrapped_write

framework/src/state/ring_buffer.rs:57–68  ·  view source on GitHub ↗

Writes data to self.vec[offset..], wrapping around the end of the Vec if necessary. Returns the number of bytes written.

(&mut self, offset: usize, data: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

write_at_offsetMethod · 0.80
write_at_tailMethod · 0.80
test_io_simpleFunction · 0.80
test_io_wrappedFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by 2

test_io_simpleFunction · 0.64
test_io_wrappedFunction · 0.64