MCPcopy Create free account
hub / github.com/Recordscript/recordscript / decode_data

Method decode_data

libs/hbb_common/src/bytes_codec.rs:68–73  ·  view source on GitHub ↗
(&self, n: usize, src: &mut BytesMut)

Source from the content-addressed store, hash-verified

66 }
67
68 fn decode_data(&self, n: usize, src: &mut BytesMut) -> io::Result<Option<BytesMut>> {
69 if src.len() < n {
70 return Ok(None);
71 }
72 Ok(Some(src.split_to(n)))
73 }
74}
75
76impl Decoder for BytesCodec {

Callers 1

decodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected