| 123 | } |
| 124 | |
| 125 | void EncodeStream::writeBytes(EncodeStream* stream, uint32_t length, uint32_t offset) { |
| 126 | if (stream->_length <= offset) { |
| 127 | return; |
| 128 | } |
| 129 | if (length == 0) { |
| 130 | length = static_cast<uint32_t>(stream->_length) - offset; |
| 131 | } |
| 132 | writeBytes(stream->bytes, length, offset); |
| 133 | } |
| 134 | |
| 135 | void EncodeStream::writeBytes(uint8_t* stream, uint32_t length, uint32_t offset) { |
| 136 | if (checkCapacity(length)) { |
no test coverage detected