MCPcopy Create free account
hub / github.com/cosdata/cosdata / serialize

Method serialize

src/models/serializer/mod.rs:86–88  ·  view source on GitHub ↗
(&self, bufman: &BufferManager, cursor: u64)

Source from the content-addressed store, hash-verified

84
85impl SimpleSerialize for u16 {
86 fn serialize(&self, bufman: &BufferManager, cursor: u64) -> Result<u32, BufIoError> {
87 Ok(bufman.write_to_end_of_file(cursor, &self.to_le_bytes())? as u32)
88 }
89
90 fn deserialize(
91 bufman: &BufferManager,

Callers

nothing calls this directly

Calls 4

write_to_end_of_fileMethod · 0.80
write_lenFunction · 0.70
lenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected