Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ reset
Method
reset
source/core/StarBuffer.cpp:140–143 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
138
}
139
140
void Buffer::reset(size_t newSize) {
141
m_pos = 0;
142
m_bytes.fill(newSize, 0);
143
}
144
145
void Buffer::reset(ByteArray b) {
146
m_pos = 0;
Callers
nothing calls this directly
Calls
1
fill
Method · 0.45
Tested by
no test coverage detected