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

Method reserve

python/pyfory/cpp/pyfory.cc:519–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 }
518
519 void reserve(uint32_t new_size) {
520 data_.resize(new_size);
521 buffer_->data_ = data_.data();
522 }
523
524 PyObject *stream_ = nullptr;
525 PythonStreamReadMethod read_method_;

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected