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

Method CopyFromStream

src/openrct2/core/IStream.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 constexpr size_t kIStreamCopyBufferLength = 16 * 1024;
20
21 void IStream::CopyFromStream(IStream& stream, uint64_t length)
22 {
23 StreamReadBuffer buffer(stream, length, kIStreamCopyBufferLength);
24 while (buffer)
25 {
26 auto block = buffer.ReadBlock(stream);
27 this->Write(block.first, block.second);
28 }
29 }
30
31 std::string IStream::ReadString()
32 {

Callers 2

DecompressFileMethod · 0.45
OrcaStreamMethod · 0.45

Calls 2

ReadBlockMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected