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

Method copy_data

src/protocol/serializer.rs:294–298  ·  view source on GitHub ↗
(chunk: &[u8])

Source from the content-addressed store, hash-verified

292 }
293
294 pub fn copy_data(chunk: &[u8]) -> Vec<u8> {
295 let mut writer = BufferWriter::default();
296 writer.add_bytes(chunk);
297 writer.flush(Some(CODE_COPY_DATA))
298 }
299
300 pub fn copy_done() -> Vec<u8> {
301 code_only_buffer(CODE_COPY_DONE)

Callers

nothing calls this directly

Calls 2

add_bytesMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected