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

Method WriteDirectCommit

src/openrct2/core/MemoryStream.cpp:189–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 }
188
189 void MemoryStream::WriteDirectCommit(size_t length)
190 {
191 Guard::Assert(_dataCapacity >= _position + length);
192 _position += length;
193 _dataSize = std::max(_dataSize, _position);
194 }
195
196 void MemoryStream::CopyFromStream(IStream& stream, uint64_t length)
197 {

Callers 1

WriteBlockCommitMethod · 0.45

Calls 1

AssertFunction · 0.85

Tested by

no test coverage detected