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

Method write_end

rust/fory-core/src/row/writer.rs:59–63  ·  view source on GitHub ↗
(&mut self, callback_info: WriteCallbackInfo)

Source from the content-addressed store, hash-verified

57 }
58
59 fn write_end(&mut self, callback_info: WriteCallbackInfo) {
60 let writer: &mut Writer = self.writer;
61 let size: usize = writer.len() - callback_info.data_start;
62 writer.set_bytes(callback_info.field_offset + 4, &(size as u32).to_le_bytes());
63 }
64}
65
66pub struct StructWriter<'a, 'b> {

Callers 1

writeMethod · 0.80

Calls 2

lenMethod · 0.80
set_bytesMethod · 0.80

Tested by

no test coverage detected