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

Method set_bytes

rust/fory-core/src/buffer.rs:73–78  ·  view source on GitHub ↗
(&mut self, offset: usize, data: &[u8])

Source from the content-addressed store, hash-verified

71
72 #[inline(always)]
73 pub fn set_bytes(&mut self, offset: usize, data: &[u8]) {
74 self.bf
75 .get_mut(offset..offset + data.len())
76 .unwrap()
77 .copy_from_slice(data);
78 }
79
80 #[inline(always)]
81 pub fn write_bytes(&mut self, v: &[u8]) -> usize {

Callers 7

write_dataMethod · 0.80
write_map_dynamicFunction · 0.80
write_chunk_sizeFunction · 0.80
write_map_dataFunction · 0.80
write_map_data_dyn_refFunction · 0.80
write_startMethod · 0.80
write_endMethod · 0.80

Calls 2

lenMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected