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

Method WriteBlockCommit

src/openrct2/core/StreamBuffer.cpp:154–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 void StreamWriteBuffer::WriteBlockCommit(IStream& stream, size_t length)
155 {
156 if (_bufferLength == 0)
157 {
158 stream.WriteDirectCommit(length);
159 _buffer += length;
160 }
161 else
162 {
163 stream.Write(_buffer, length);
164 }
165 _remaining -= length;
166 }
167} // namespace OpenRCT2

Callers 4

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

Calls 2

WriteDirectCommitMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected