MCPcopy Create free account
hub / github.com/alibaba/GraphScope / write_to

Method write_to

interactive_engine/executor/ir/runtime/src/process/record.rs:234–250  ·  view source on GitHub ↗
(&self, writer: &mut W)

Source from the content-addressed store, hash-verified

232
233impl Encode for Record {
234 fn write_to<W: WriteExt>(&self, writer: &mut W) -> std::io::Result<()> {
235 match &self.curr {
236 None => {
237 writer.write_u8(0)?;
238 }
239 Some(entry) => {
240 writer.write_u8(1)?;
241 entry.write_to(writer)?;
242 }
243 }
244 writer.write_u64(self.columns.len() as u64)?;
245 for (k, v) in self.columns.iter() {
246 (k as KeyId).write_to(writer)?;
247 v.write_to(writer)?;
248 }
249 Ok(())
250 }
251}
252
253impl Decode for Record {

Callers

nothing calls this directly

Calls 5

write_u8Method · 0.45
write_u64Method · 0.45
lenMethod · 0.45
iterMethod · 0.45
write_u32Method · 0.45

Tested by

no test coverage detected