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

Method reserve

rust/fory-core/src/buffer.rs:61–65  ·  view source on GitHub ↗
(&mut self, additional: usize)

Source from the content-addressed store, hash-verified

59
60 #[inline(always)]
61 pub fn reserve(&mut self, additional: usize) {
62 if self.bf.capacity() - self.len() < additional {
63 self.bf.reserve(max(additional * 2, self.bf.capacity()));
64 }
65 }
66
67 #[inline(always)]
68 pub fn skip(&mut self, len: usize) {

Callers 10

write_bytes_from_ptrMethod · 0.45
write_utf8_stringMethod · 0.45
write_headMethod · 0.45
write_collection_dataFunction · 0.45
write_dataMethod · 0.45
write_map_dataFunction · 0.45
newMethod · 0.45
write_latin1_stringFunction · 0.45
write_utf16_standardFunction · 0.45
write_latin1_simdFunction · 0.45

Calls 2

capacityMethod · 0.80
lenMethod · 0.80

Tested by

no test coverage detected