MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / copy_data

Function copy_data

src/protocol/tests.rs:290–294  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

288 }
289
290 pub fn copy_data(bytes: &[u8]) -> Vec<u8> {
291 let mut list = BufferList::new();
292 list.add_bytes(bytes);
293 list.join(true, Some(b'd'))
294 }
295
296 pub fn copy_done() -> Vec<u8> {
297 BufferList::new().join(true, Some(b'c'))

Callers 2

Calls 2

add_bytesMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected