MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / seek

Method seek

Source/ThirdParty/streamreader.hh:127–133  ·  view source on GitHub ↗

Seek to absolute position Returns false if position is out of bounds

Source from the content-addressed store, hash-verified

125 // Seek to absolute position
126 // Returns false if position is out of bounds
127 bool seek(size_t pos) {
128 if (pos > length_) {
129 return false;
130 }
131 pos_ = pos;
132 return true;
133 }
134
135 // Rewind to beginning
136 void rewind() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected