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

Function code_only_buffer

src/protocol/serializer.rs:323–328  ·  view source on GitHub ↗
(code: u8)

Source from the content-addressed store, hash-verified

321}
322
323fn code_only_buffer(code: u8) -> Vec<u8> {
324 let mut buf = vec![0u8; 5];
325 buf[0] = code;
326 buf[1..5].copy_from_slice(&(4i32).to_be_bytes());
327 buf
328}
329
330pub trait SerializeExt {
331 fn serialize(&self) -> Vec<u8>;

Callers 4

flushMethod · 0.85
syncMethod · 0.85
endMethod · 0.85
copy_doneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected