MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / withReserve

Method withReserve

source/core/StarByteArray.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17ByteArray ByteArray::withReserve(size_t capacity) {
18 ByteArray bytes;
19 bytes.reserve(capacity);
20 return bytes;
21}
22
23ByteArray::ByteArray() {
24 m_data = nullptr;

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected