MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / data

Method data

atomic-core/src/change/format_v3/chunking.rs:259–261  ·  view source on GitHub ↗
(&self, source: &'a [u8])

Source from the content-addressed store, hash-verified

257 /// Panics if the chunk's range exceeds the source buffer length.
258 #[inline]
259 pub fn data<'a>(&self, source: &'a [u8]) -> &'a [u8] {
260 &source[self.offset..self.end()]
261 }
262}
263
264impl fmt::Display for ContentChunk {

Callers 4

serializeMethod · 0.45
compress_chunks_parallelFunction · 0.45

Calls 1

endMethod · 0.80

Tested by 2