MCPcopy Create free account
hub / github.com/Tencent/MMKV / seek

Method seek

Core/CodedOutputData.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void CodedOutputData::seek(size_t addedSize) {
101 m_position += addedSize;
102
103 if (m_position > m_size) {
104 throw out_of_range("OutOfSpace");
105 }
106}
107
108void CodedOutputData::reset() {
109 m_position = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected