MCPcopy Create free account
hub / github.com/apache/fory / write

Method write

rust/fory-core/src/row/row.rs:67–70  ·  view source on GitHub ↗
(v: &Self, writer: &mut Writer)

Source from the content-addressed store, hash-verified

65 type ReadResult = &'a str;
66
67 fn write(v: &Self, writer: &mut Writer) -> Result<(), Error> {
68 writer.write_bytes(v.as_bytes());
69 Ok(())
70 }
71
72 fn cast(bytes: &'a [u8]) -> Self::ReadResult {
73 unsafe { std::str::from_utf8_unchecked(bytes) }

Callers

nothing calls this directly

Calls 14

write_u8Method · 0.80
write_startMethod · 0.80
get_writerMethod · 0.80
write_endMethod · 0.80
epoch_daysMethod · 0.80
write_i32Method · 0.80
write_i64Method · 0.80
to_epoch_microsMethod · 0.80
to_microsMethod · 0.80
lenMethod · 0.80
writeFunction · 0.50
write_bytesMethod · 0.45

Tested by

no test coverage detected