MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / reserve

Method reserve

utility/file_access_buffer.cpp:162–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162Error FileAccessBuffer::reserve(int64_t p_length) {
163 if (p_length > data.size()) {
164 data.resize_uninitialized(p_length);
165 }
166 return OK;
167}
168
169void FileAccessBuffer::set_auto_resize_behavior(ResizeBehavior p_resize_behavior) {
170 resize_behavior = p_resize_behavior;

Callers 3

resource_to_stringMethod · 0.45
load_embedded_imageMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected