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

Method seek

Core/CodedInputDataCrypt.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void CodedInputDataCrypt::seek(size_t addedSize) {
61 m_position += addedSize;
62 m_decryptPosition += addedSize;
63
64 if (m_position > m_size) {
65 throw out_of_range("OutOfSpace");
66 }
67 assert(m_position % AES_IV_LEN == m_decrypter.m_number);
68}
69
70void CodedInputDataCrypt::consumeBytes(size_t length, bool discardPreData) {
71 if (discardPreData) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected