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

Method FileBufferSub

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

Source from the content-addressed store, hash-verified

15}
16
17FileBufferSub::FileBufferSub(IFileBuffer* buf, int start, int size) : _whole(buf)
18{
19 int bufSize = buf->GetSize();
20 saturate(start, 0, bufSize);
21 saturate(size, 0, bufSize - start);
22 _start = start;
23 _size = size;
24}
25
26} // namespace Poseidon

Callers

nothing calls this directly

Calls 2

saturateFunction · 0.85
GetSizeMethod · 0.45

Tested by

no test coverage detected