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

Method wrapped_read

framework/src/state/ring_buffer.rs:42–53  ·  view source on GitHub ↗

Reads data from self.vec, wrapping around the end of the Vec if necessary. Returns the number of bytes written.

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

read_from_offsetMethod · 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