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