New to Telerik Document ProcessingStart a free 30-day trial

Defines the basic operations of the cryptographic or compression transformations.

Definition

Namespace:Telerik.Windows.Zip

Assembly:Telerik.Windows.Zip.dll

Syntax:

C#
public interface IBlockTransform : IDisposable

Derived Classes: BlockTransformBase

Inherited Members IDisposable.Dispose()

Methods

Creates transformation header to be written into the output stream.

C#
void CreateHeader(CompressionSettings compressionSettings = null)
Parameters:compressionSettingsCompressionSettings

Initialize reading of the transformation footer.

C#
void InitFooterReading(int compressedSize)
Parameters:compressedSizeint

Initialize reading of the transformation header.

C#
void InitHeaderReading(CompressionSettings settings = null)
Parameters:settingsCompressionSettings

Process transformation footer has been read.

C#
void ProcessFooter()

Process transformation header has been read.

C#
void ProcessHeader()

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

C#
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
Parameters:inputBufferbyte[]

The input for which to compute the transform.

inputOffsetint

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

inputCountint

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

outputBufferbyte[]

The output to which to write the transform.

outputOffsetint

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

Returns:

int

The number of bytes written.

Transforms the specified region of the specified byte array.

C#
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount, CancellationToken cancellationToken)
Parameters:inputBufferbyte[]

The input for which to compute the transform.

inputOffsetint

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

inputCountint

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

cancellationTokenCancellationToken

The token to monitor for cancellation requests.

Returns:

byte[]

The computed transform.

Transforms the specified region of the specified byte array.

C#
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
Parameters:inputBufferbyte[]

The input for which to compute the transform.

inputOffsetint

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

inputCountint

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

Returns:

byte[]

The computed transform.

Properties

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

C#
bool CanReuseTransform { get; }
Property Value:

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

Gets a value indicating whether multiple blocks can be transformed.

C#
bool CanTransformMultipleBlocks { get; }
Property Value:

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

Gets transformation footer (if required).

C#
TransformationFooter Footer { get; }

Gets transformation header (if required).

C#
TransformationHeader Header { get; }

Gets the input block size.

C#
int InputBlockSize { get; }
Property Value:

The size of the input data blocks in bytes.

Gets the output block size.

C#
int OutputBlockSize { get; }
Property Value:

The size of the output data blocks in bytes.