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

Method fory_write_data

rust/tests/tests/compatible/test_struct.rs:760–765  ·  view source on GitHub ↗
(&self, context: &mut WriteContext)

Source from the content-addressed store, hash-verified

758
759 impl<T: 'static + Serializer + ForyDefault> Serializer for Wrapper<T> {
760 fn fory_write_data(&self, context: &mut WriteContext) -> Result<(), Error> {
761 context.writer.write_var_u32(self.value.len() as u32);
762 context.writer.write_utf8_string(&self.value);
763 self.data.fory_write_data(context)?;
764 Ok(())
765 }
766
767 fn fory_read_data(context: &mut ReadContext) -> Result<Self, Error> {
768 let len = context.reader.read_var_u32()? as usize;

Callers

nothing calls this directly

Calls 3

write_var_u32Method · 0.80
lenMethod · 0.80
write_utf8_stringMethod · 0.80

Tested by

no test coverage detected