chore: initial commit (extracted from Launchers monorepo)
Plugin: ns7zip v2.0.0 Architectures: x86-ansi, x86-unicode, amd64-unicode License: LGPL-2.1-or-later
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// CabBlockInStream.h
|
||||
|
||||
#ifndef ZIP7_INC_CAB_BLOCK_IN_STREAM_H
|
||||
#define ZIP7_INC_CAB_BLOCK_IN_STREAM_H
|
||||
|
||||
#include "../../IStream.h"
|
||||
|
||||
namespace NArchive {
|
||||
namespace NCab {
|
||||
|
||||
class CBlockPackData
|
||||
{
|
||||
Byte *_buf;
|
||||
UInt32 _size;
|
||||
public:
|
||||
CBlockPackData(): _buf(NULL), _size(0) {}
|
||||
~CBlockPackData() throw();
|
||||
bool Create() throw();
|
||||
void InitForNewBlock() { _size = 0; }
|
||||
HRESULT Read(ISequentialInStream *stream, Byte ReservedSize, UInt32 &packSize, UInt32 &unpackSize) throw();
|
||||
UInt32 GetPackSize() const { return _size; }
|
||||
// 32 bytes of overread zone is available after PackSize:
|
||||
const Byte *GetData() const { return _buf; }
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user