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

Method writeRawByte

Core/CodedOutputData.cpp:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void CodedOutputData::writeRawByte(uint8_t value) {
121 if (m_position == m_size) {
122 throw out_of_range("m_position: " + to_string(m_position) + " m_size: " + to_string(m_size));
123 return;
124 }
125
126 m_ptr[m_position++] = value;
127}
128
129void CodedOutputData::writeRawData(const MMBuffer &data) {
130 size_t numberOfBytes = data.length();

Callers 5

writeBoolMethod · 0.95
writeRawVarint32Method · 0.95
writeRawVarint64Method · 0.95

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected