Search Results for

    Show / Hide Table of Contents

    Class Decompressor

    A bzip2 decompressor.

    Inheritance
    System.Object
    Decompressor
    Namespace: FM.LiveSwitch.BZip2
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class Decompressor : object

    Constructors

    Decompressor(DataBuffer)

    Initializes a new instance of the Decompressor class.

    Declaration
    public Decompressor(DataBuffer input)
    Parameters
    Type Name Description
    DataBuffer input

    The input.

    Methods

    Read(Byte[], Int32, Int32)

    Read data from the stream.

    Declaration
    public int Read(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    System.Byte[] buffer

    The buffer into which the read data should be placed.

    System.Int32 offset

    the offset within that data array to put the first byte read.

    System.Int32 count

    the number of bytes to read.

    Returns
    Type Description
    System.Int32

    the number of bytes actually read

    Remarks

    To decompress a BZip2 data stream, create a BZip2InputStream, providing a stream that reads compressed data. Then call Read() on that BZip2InputStream, and the data read will be decompressed as you read.

    A BZip2InputStream can be used only for Read(), not for Write().

    ReadByte()

    Read a single byte from the stream.

    Declaration
    public int ReadByte()
    Returns
    Type Description
    System.Int32

    the byte read from the stream, or -1 if EOF

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0