MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WriteBlockStart

Method WriteBlockStart

src/openrct2/core/StreamBuffer.cpp:145–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 4

zlibCompressFunction · 0.80
zlibDecompressFunction · 0.80
zstdCompressFunction · 0.80
zstdDecompressFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected