MCPcopy Index your code
hub / github.com/RustPython/RustPython / reserve

Method reserve

crates/wtf8/src/lib.rs:398–400  ·  view source on GitHub ↗
(&mut self, additional: usize)

Source from the content-addressed store, hash-verified

396 /// Panics if the new capacity exceeds `isize::MAX` bytes.
397 #[inline]
398 pub fn reserve(&mut self, additional: usize) {
399 self.bytes.reserve(additional)
400 }
401
402 /// Tries to reserve capacity for at least `additional` more bytes to be
403 /// inserted in the given `Wtf8Buf`. The `Wtf8Buf` may reserve more space to

Callers 4

_array_reconstructorFunction · 0.45
compressMethod · 0.45
flushMethod · 0.45
extendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected