MCPcopy Create free account
hub / github.com/hashintel/hash / encode_bytes_full

Function encode_bytes_full

libs/@local/harpc/wire-protocol/src/codec/encode.rs:236–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235 #[test]
236 fn encode_bytes_full() {
237 let bytes: Bytes = vec![0; u16::MAX as usize - 32].into();
238
239 let value = encode_value(&bytes);
240 assert_eq!(value.len(), (u16::MAX as usize) - 32 + 2);
241 }
242}

Callers

nothing calls this directly

Calls 1

encode_valueFunction · 0.85

Tested by

no test coverage detected