MCPcopy Create free account
hub / github.com/GRVYDEV/Project-Lightspeed / encode

Method encode

ingest/src/ftl_codec.rs:84–89  ·  view source on GitHub ↗
(&mut self, line: T, buf: &mut BytesMut)

Source from the content-addressed store, hash-verified

82 type Error = FtlError;
83
84 fn encode(&mut self, line: T, buf: &mut BytesMut) -> Result<(), FtlError> {
85 let line = line.as_ref();
86 buf.reserve(line.len());
87 buf.put(line.as_bytes());
88 Ok(())
89 }
90}
91#[derive(Debug)]
92pub enum FtlError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected