MCPcopy Create free account
hub / github.com/apitrace/apitrace / ZstdFile

Method ZstdFile

lib/trace/trace_file_zstd.cpp:94–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92};
93
94ZstdFile::ZstdFile(void)
95 : File(),
96 m_fp(nullptr),
97 m_dstream(nullptr),
98 m_cache(new char[ZSTD_READ_BUFFER_SIZE]),
99 m_cacheSize(0),
100 m_cachePos(0),
101 // Allocate enough to store even the worst-case compressed frame for our 2MB seekable decompressed frame size.
102 m_inputSize(ZSTD_compressBound(2 * 1024 * 1024)),
103 m_inputBuffer(new char[m_inputSize]),
104 m_in({nullptr, 0, 0}),
105 m_dataBytesRead(0),
106 m_compressedBytesRead(0),
107 m_fileSize(0),
108 m_eof(false)
109{
110}
111
112ZstdFile::~ZstdFile()
113{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected