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

Method write_utf8_string

rust/fory-core/src/buffer.rs:433–438  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

431
432 #[inline(always)]
433 pub fn write_utf8_string(&mut self, s: &str) {
434 let bytes = s.as_bytes();
435 let len = bytes.len();
436 self.bf.reserve(len);
437 self.bf.extend_from_slice(bytes);
438 }
439
440 // ============ Rust-specific types (i128, u128, isize, usize) ============
441

Callers 2

fory_write_dataMethod · 0.80
fory_write_dataMethod · 0.80

Calls 2

lenMethod · 0.80
reserveMethod · 0.45

Tested by 1

fory_write_dataMethod · 0.64