MCPcopy Create free account
hub / github.com/dennisss/dacha / append_partial

Method append_partial

pkg/common/src/segmented_buffer.rs:61–85  ·  view source on GitHub ↗

Appends a contiguous slice of data to the buffer. If we hit the end of the buffer, this will stop early and will need to be called again to add more data starting at the beginning of the buffer. Returns the number of bytes appended.

(&mut self, data: &[u8], overflowed: &mut bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

writeMethod · 0.80

Calls 4

copy_from_sliceMethod · 0.80
lenMethod · 0.45
as_refMethod · 0.45
as_mutMethod · 0.45

Tested by

no test coverage detected