InterfaceIBlockTransform
Defines the basic operations of the cryptographic or compression transformations.
Definition
Namespace:Telerik.Windows.Zip
Assembly:Telerik.Windows.Zip.dll
Syntax:
public interface IBlockTransform : IDisposable
Inherited Members
Properties
CanReuseTransform
Gets a value indicating whether the current transform can be reused.
Declaration
bool CanReuseTransform { get; }
Property Value
true if the current transform can be reused; otherwise, false.
CanTransformMultipleBlocks
Gets a value indicating whether multiple blocks can be transformed.
Declaration
bool CanTransformMultipleBlocks { get; }
Property Value
true if multiple blocks can be transformed; otherwise, false.
Footer
Gets transformation footer (if required).
Declaration
TransformationFooter Footer { get; }
Property Value
Header
Gets transformation header (if required).
Declaration
TransformationHeader Header { get; }
Property Value
InputBlockSize
Gets the input block size.
Declaration
int InputBlockSize { get; }
Property Value
The size of the input data blocks in bytes.
OutputBlockSize
Gets the output block size.
Declaration
int OutputBlockSize { get; }
Property Value
The size of the output data blocks in bytes.
Methods
CreateHeader(CompressionSettings)
Creates transformation header to be written into the output stream.
Declaration
void CreateHeader(CompressionSettings compressionSettings = null)
Parameters
compressionSettings
InitFooterReading(int)
Initialize reading of the transformation footer.
Declaration
void InitFooterReading(int compressedSize)
Parameters
compressedSize
InitHeaderReading(CompressionSettings)
Initialize reading of the transformation header.
Declaration
void InitHeaderReading(CompressionSettings settings = null)
Parameters
settings
ProcessFooter()
Process transformation footer has been read.
Declaration
void ProcessFooter()
ProcessHeader()
Process transformation header has been read.
Declaration
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
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
Parameters
inputBuffer
byte[]
The input for which to compute the transform.
inputOffset
The offset into the input byte array from which to begin using data.
inputCount
The number of bytes in the input byte array to use as data.
outputBuffer
byte[]
The output to which to write the transform.
outputOffset
The offset into the output byte array from which to begin writing data.
Returns
The number of bytes written.
TransformFinalBlock(byte[], int, int)
Transforms the specified region of the specified byte array.
Declaration
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
Parameters
inputBuffer
byte[]
The input for which to compute the transform.
inputOffset
The offset into the byte array from which to begin using data.
inputCount
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
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount, CancellationToken cancellationToken)
Parameters
inputBuffer
byte[]
The input for which to compute the transform.
inputOffset
The offset into the byte array from which to begin using data.
inputCount
The number of bytes in the byte array to use as data.
cancellationToken
The token to monitor for cancellation requests.
Returns
byte[]
The computed transform.