skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class BlockTransformBase

Base class for all block transformations.

Inheritance
System.Object
BlockTransformBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Zip
Assembly: Telerik.Windows.Zip.dll

Syntax

public abstract class BlockTransformBase : IBlockTransform, IDisposable

Constructors

BlockTransformBase()

Declaration
protected BlockTransformBase()

Properties

CanReuseTransform

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

Declaration
public abstract bool CanReuseTransform { get; }
Property Value
System.Boolean

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

Implements
IBlockTransform.CanReuseTransform

CanTransformMultipleBlocks

Gets a value indicating whether multiple blocks can be transformed.

Declaration
public abstract bool CanTransformMultipleBlocks { get; }
Property Value
System.Boolean

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

Implements
IBlockTransform.CanTransformMultipleBlocks

FixedInputBlockSize

Gets or sets value which indicates whether the transformation uses input buffer of the fixed size.

Declaration
protected bool FixedInputBlockSize { get; set; }
Property Value
System.Boolean

Footer

Gets transformation footer (if required).

Declaration
public TransformationFooter Footer { get; }
Property Value
TransformationFooter

Implements
IBlockTransform.Footer

Header

Gets transformation header (if required).

Declaration
public TransformationHeader Header { get; }
Property Value
TransformationHeader

Implements
IBlockTransform.Header

InputBlockSize

Gets the input block size.

Declaration
public abstract int InputBlockSize { get; }
Property Value
System.Int32

The size of the input data blocks in bytes.

Implements
IBlockTransform.InputBlockSize

OutputBlockSize

Gets the output block size.

Declaration
public abstract int OutputBlockSize { get; }
Property Value
System.Int32

The size of the output data blocks in bytes.

Implements
IBlockTransform.OutputBlockSize

Methods

CreateHeader(CompressionSettings)

Creates transformation header to be written into the output stream.

Declaration
public virtual void CreateHeader(CompressionSettings compressionSettings = null)
Parameters
CompressionSettings compressionSettings

Implements
IBlockTransform.CreateHeader(CompressionSettings)

Dispose()

Releases the resources used by the current instance of the ZipArchive class.

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

Dispose(Boolean)

Releases the unmanaged resources used by the transform and optionally releases the managed resources.

Declaration
protected abstract void Dispose(bool disposing)
Parameters
System.Boolean disposing

Value which indicates whether both managed and unmanaged resources (true) on only unmanaged resources (false) should be released.

InitFooterReading(Int32)

Initialize reading of the transformation footer.

Declaration
public virtual void InitFooterReading(int compressedSize)
Parameters
System.Int32 compressedSize

Implements
IBlockTransform.InitFooterReading(Int32)

InitHeaderReading(CompressionSettings)

Initialize reading of the transformation header.

Declaration
public virtual void InitHeaderReading(CompressionSettings settings = null)
Parameters
CompressionSettings settings

Implements
IBlockTransform.InitHeaderReading(CompressionSettings)

ProcessFooter()

Process transformation footer has been read.

Declaration
public virtual void ProcessFooter()
Implements
IBlockTransform.ProcessFooter()

ProcessHeader()

Process transformation header has been read.

Declaration
public virtual void ProcessHeader()
Implements
IBlockTransform.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
public abstract 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.

Implements
IBlockTransform.TransformBlock(Byte[], Int32, Int32, Byte[], Int32)

TransformFinalBlock(Byte[], Int32, Int32)

Transforms the specified region of the specified byte array.

Declaration
public abstract 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.

Implements
IBlockTransform.TransformFinalBlock(Byte[], Int32, Int32)

TransformFinalBlock(Byte[], Int32, Int32, CancellationToken)

Transforms the specified region of the specified byte array.

Declaration
public abstract byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount, CancellationToken cancellationToken)
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.

System.Threading.CancellationToken cancellationToken

The token to monitor for cancellation requests.

Returns
System.Byte[]

The computed transform.

Implements
IBlockTransform.TransformFinalBlock(Byte[], Int32, Int32, CancellationToken)

ValidateInputBufferParameters(Byte[], Int32, Int32, Boolean, Boolean)

Validates parameters of the input buffer.

Declaration
protected void ValidateInputBufferParameters(byte[] inputBuffer, int inputOffset, int inputCount, bool validateBlockSize, bool allowZeroCount)
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.Boolean validateBlockSize

Indicates whether buffer block size should be validated. Should be true for the TransformBlock and false for the TransformFinalBlock.

System.Boolean allowZeroCount

Indicates whether count can be zero.

ValidateParameters(Byte[], Int32, Int32, Byte[], Int32, Boolean)

Validates parameters of the transform operation.

Declaration
protected void ValidateParameters(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset, bool allowZeroCount)
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.

System.Boolean allowZeroCount

Indicates whether input count can be zero.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.