| 143 | } |
| 144 | |
| 145 | std::pair<void*, size_t> StreamWriteBuffer::WriteBlockStart(size_t maxLength) |
| 146 | { |
| 147 | size_t len = static_cast<size_t>(std::min<uint64_t>(_remaining, maxLength)); |
| 148 | if (_bufferLength > 0) |
| 149 | len = std::min(len, _bufferLength); |
| 150 | |
| 151 | return { _buffer, len }; |
| 152 | } |
| 153 | |
| 154 | void StreamWriteBuffer::WriteBlockCommit(IStream& stream, size_t length) |
| 155 | { |
no outgoing calls
no test coverage detected