Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
17
ByteArray ByteArray::withReserve(size_t capacity) {
18
ByteArray bytes;
19
bytes.reserve(capacity);
20
return bytes;
21
}
22
23
ByteArray::ByteArray() {
24
m_data = nullptr;
Callers
nothing calls this directly
Calls
1
reserve
Method · 0.45
Tested by
no test coverage detected