MCPcopy Create free account
hub / github.com/Tencent/libpag / setPosition

Method setPosition

exporter/src/utils/ByteArray.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace exporter {
23
24void ByteArray::setPosition(size_t value) {
25 if (value < dataView.size()) {
26 _position = value;
27 _bitPosition = _position * 8;
28 }
29}
30
31void ByteArray::skip(size_t numBytes) {
32 if (!checkEndOfFile(numBytes)) {

Callers 2

ReadFirstTagByNamesFunction · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected