| 30 | } |
| 31 | |
| 32 | std::unique_ptr<ByteData> EncodeStream::release() { |
| 33 | auto data = ByteData::MakeAdopted(bytes, _length); |
| 34 | capacity = 0; |
| 35 | _position = 0; |
| 36 | _length = 0; |
| 37 | _bitPosition = 0; |
| 38 | bytes = nullptr; |
| 39 | dataView.reset(); |
| 40 | return data; |
| 41 | } |
| 42 | |
| 43 | void EncodeStream::setPosition(uint32_t value) { |
| 44 | _position = value; |
no test coverage detected