IBlockTransform
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
Derived Classes:
Inherited Members
Methods
Creates transformation header to be written into the output stream.
void CreateHeader(CompressionSettings compressionSettings = null)
Initialize reading of the transformation footer.
Initialize reading of the transformation header.
void InitHeaderReading(CompressionSettings settings = null)
Process transformation footer has been read.
void ProcessFooter()
Process transformation header has been read.
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.
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
The input for which to compute the transform.
inputOffsetintThe offset into the input byte array from which to begin using data.
inputCountintThe number of bytes in the input byte array to use as data.
outputBufferbyte[]The output to which to write the transform.
outputOffsetintThe offset into the output byte array from which to begin writing data.
Returns:The number of bytes written.
Transforms the specified region of the specified byte array.
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount, CancellationToken cancellationToken)
The input for which to compute the transform.
inputOffsetintThe offset into the byte array from which to begin using data.
inputCountintThe number of bytes in the byte array to use as data.
cancellationTokenCancellationTokenThe token to monitor for cancellation requests.
Returns:byte[]
The computed transform.
Transforms the specified region of the specified byte array.
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
The input for which to compute the transform.
inputOffsetintThe offset into the byte array from which to begin using data.
inputCountintThe 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.
bool CanReuseTransform { get; }
true if the current transform can be reused; otherwise, false.
Gets a value indicating whether multiple blocks can be transformed.
bool CanTransformMultipleBlocks { get; }
true if multiple blocks can be transformed; otherwise, false.
Gets transformation footer (if required).
TransformationFooter Footer { get; }
Gets transformation header (if required).
TransformationHeader Header { get; }
Gets the input block size.
int InputBlockSize { get; }
The size of the input data blocks in bytes.
Gets the output block size.
int OutputBlockSize { get; }
The size of the output data blocks in bytes.