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

Method reset

source/core/StarByteArray.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void ByteArray::reset() {
75 if (m_data) {
76 Star::free(m_data, m_capacity);
77 m_data = nullptr;
78 m_capacity = 0;
79 m_size = 0;
80 }
81}
82
83void ByteArray::reserve(size_t newCapacity) {
84 if (newCapacity > m_capacity) {

Callers

nothing calls this directly

Calls 1

freeFunction · 0.70

Tested by

no test coverage detected