Interface
IBlockTransform

Defines the basic operations of the cryptographic or compression transformations.

Definition

Namespace:Telerik.Windows.Zip

Assembly:Telerik.Windows.Zip.dll

Syntax:

cs-api-definition
public interface IBlockTransform : IDisposable

Inherited Members IDisposable.Dispose()

Properties

CanReuseTransform

Gets a value indicating whether the current transform can be reused.

Declaration

cs-api-definition
bool CanReuseTransform { get; }

Property Value

bool

true if the current transform can be reused; otherwise, false.

CanTransformMultipleBlocks

Gets a value indicating whether multiple blocks can be transformed.

Declaration

cs-api-definition
bool CanTransformMultipleBlocks { get; }

Property Value

bool

true if multiple blocks can be transformed; otherwise, false.

Gets transformation footer (if required).

Declaration

cs-api-definition
TransformationFooter Footer { get; }

Property Value

TransformationFooter

Header

Gets transformation header (if required).

Declaration

cs-api-definition
TransformationHeader Header { get; }

Property Value

TransformationHeader

InputBlockSize

Gets the input block size.

Declaration

cs-api-definition
int InputBlockSize { get; }

Property Value

int

The size of the input data blocks in bytes.

OutputBlockSize

Gets the output block size.

Declaration

cs-api-definition
int OutputBlockSize { get; }

Property Value

int

The size of the output data blocks in bytes.

Methods

CreateHeader(CompressionSettings)

Creates transformation header to be written into the output stream.

Declaration

cs-api-definition
void CreateHeader(CompressionSettings compressionSettings = null)

Parameters

compressionSettings

CompressionSettings

InitFooterReading(int)

Initialize reading of the transformation footer.

Declaration

cs-api-definition
void InitFooterReading(int compressedSize)

Parameters

compressedSize

int

InitHeaderReading(CompressionSettings)

Initialize reading of the transformation header.

Declaration

cs-api-definition
void InitHeaderReading(CompressionSettings settings = null)

Parameters

settings

CompressionSettings

ProcessFooter()

Process transformation footer has been read.

Declaration

cs-api-definition
void ProcessFooter()

ProcessHeader()

Process transformation header has been read.

Declaration

cs-api-definition
void ProcessHeader()

TransformBlock(byte[], int, int, byte[], int)

Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.

Declaration

cs-api-definition
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)

Parameters

inputBuffer

byte[]

The input for which to compute the transform.

inputOffset

int

The offset into the input byte array from which to begin using data.

inputCount

int

The number of bytes in the input byte array to use as data.

outputBuffer

byte[]

The output to which to write the transform.

outputOffset

int

The offset into the output byte array from which to begin writing data.

Returns

int

The number of bytes written.

TransformFinalBlock(byte[], int, int)

Transforms the specified region of the specified byte array.

Declaration

cs-api-definition
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)

Parameters

inputBuffer

byte[]

The input for which to compute the transform.

inputOffset

int

The offset into the byte array from which to begin using data.

inputCount

int

The number of bytes in the byte array to use as data.

Returns

byte[]

The computed transform.

TransformFinalBlock(byte[], int, int, CancellationToken)

Transforms the specified region of the specified byte array.

Declaration

cs-api-definition
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount, CancellationToken cancellationToken)

Parameters

inputBuffer

byte[]

The input for which to compute the transform.

inputOffset

int

The offset into the byte array from which to begin using data.

inputCount

int

The number of bytes in the byte array to use as data.

cancellationToken

CancellationToken

The token to monitor for cancellation requests.

Returns

byte[]

The computed transform.