MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / FileBufferUncompressed

Method FileBufferUncompressed

engine/Poseidon/IO/Streams/FileCompress.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace Poseidon
6{
7FileBufferUncompressed::FileBufferUncompressed(int outSize, QIStream& in)
8{
9 _data.Init(outSize); // uncompressed data
10 SSCompress ss;
11 if (!ss.Decode(_data.Data(), _data.Size(), in))
12 {
13 _data.Delete();
14 }
15}
16
17FileBufferSub::FileBufferSub(IFileBuffer* buf, int start, int size) : _whole(buf)
18{

Callers

nothing calls this directly

Calls 5

InitMethod · 0.45
DecodeMethod · 0.45
DataMethod · 0.45
SizeMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected