| 132 | } |
| 133 | |
| 134 | DecodeStream DecodeStream::readBytes(uint32_t length) { |
| 135 | if (!checkEndOfFile(length)) { |
| 136 | DecodeStream stream(context, dataView.bytes() + _position, length); |
| 137 | positionChanged(length); |
| 138 | return stream; |
| 139 | } |
| 140 | return DecodeStream(context); |
| 141 | } |
| 142 | |
| 143 | std::unique_ptr<ByteData> DecodeStream::readByteData() { |
| 144 | auto length = readEncodedUint32(); |
no test coverage detected