Delphi / C++Builder Streaming Compression Library
with Strong Encryption


Creates an instance of the TCPSCryptoPressFileStream object.

Delphi syntax:
constructor Create(const FileName: String; Mode: Word); overload;
constructor Create(
const FileName: String;
Mode: Word;
CryptoParams: TCPSCryptoParams;
CompressionAlgorithm: TCPSCompressionAlgorithm = caZLIB;
CompressionMode: Byte = CPSDefaultCompressionMode;
BlockSize: Integer = CPSDefaultBlockSize;
Header: PChar = nil;
HeaderSize: Integer = 0;
Manager: TComponent = nil;
TempDir: String = ''
); overload;

C++ syntax:
__fastcall TCPSCryptoPressFileStream(const AnsiString FileName, Word Mode)/* overload */;
__fastcall TCPSCryptoPressFileStream(
const AnsiString FileName, Word Mode,
const Cpscrypto::TCPSCryptoParams &CryptoParams,
TCPSCompressionAlgorithm CompressionAlgorithm,
Byte CompressionMode,
int BlockSize,
char * Header,
int HeaderSize,
Classes::TComponent* Manager,
AnsiString TempDir)/* overload */;

Creates an instance of the TCPSCryptoPressFileStream object. This stream uses TCPSCryptoPressStream object created with TCPSFileStream object passed as a BaseStream. Thus it is a compressed and/or encrypted file stream.

FileName - file name and path .
Mode - open mode as in TFileStream.Create.
CryptoParams - encryption settings for the stream. Can be retrieved from TCPSManager.CryptoParams.
CompressionAlgorithm - specified the compression algorithm for creating new stream.
CompressionMode - specified the compression mode for creating new stream.
BlockSize - specifies the block size for creating new stream.
Header - specifies the additional header for creating new stream. This header will be encrypted if CryptoParams.CryptoAlgorithm <> CPS_Cipher_None.
HeaderSize - specifies the size of the additional header for creating new stream.
Manager - reference to TCPSManager component
TempDir - temporary directory.

© AidAim Software CryptoPressStream: Streaming Compression Library Delphi Compression Strong Encryption Library Compression Strea