MCPcopy 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
140void Buffer::reset(size_t newSize) {
141 m_pos = 0;
142 m_bytes.fill(newSize, 0);
143}
144
145void Buffer::reset(ByteArray b) {
146 m_pos = 0;

Callers

nothing calls this directly

Calls 1

fillMethod · 0.45

Tested by

no test coverage detected