menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CompressedStreamReader - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CompressedStreamReader

    Reader, that reads stream with compressed data

    Inheritance
    System.Object
    CompressedStreamReader
    Namespace: Syncfusion.Compression
    Assembly: Syncfusion.Compression.Portable.dll
    Syntax
    public class CompressedStreamReader : Object

    Constructors

    CompressedStreamReader(Stream)

    TODO: place correct comment here

    Declaration
    public CompressedStreamReader(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    CompressedStreamReader(Stream, Boolean)

    Creates new reader for streams with compressed data.

    Declaration
    public CompressedStreamReader(Stream stream, bool bNoWrap)
    Parameters
    Type Name Description
    System.IO.Stream stream
    System.Boolean bNoWrap

    Properties

    AvailableBits

    GET count of bits available

    Declaration
    protected int AvailableBits { get; }
    Property Value
    Type
    System.Int32

    AvailableBytes

    Get count of full bytes available.

    Declaration
    protected long AvailableBytes { get; }
    Property Value
    Type
    System.Int64

    Methods

    BitsToString(Int32, Int32)

    TODO: place correct comment here

    Declaration
    protected string BitsToString(int bits, int count)
    Parameters
    Type Name Description
    System.Int32 bits
    System.Int32 count
    Returns
    Type Description
    System.String

    TODO: place correct comment here

    ChecksumReset()

    Resets current checksum to 1.

    Declaration
    protected void ChecksumReset()

    ChecksumUpdate(Byte[], Int32, Int32)

    Updates checksum by calculating checksum of the given buffer and adding it to current value.

    Declaration
    protected void ChecksumUpdate(byte[] buffer, int offset, int length)
    Parameters
    Type Name Description
    System.Byte[] buffer

    Data byte array.

    System.Int32 offset

    Offset in the buffer.

    System.Int32 length

    Length of data to be used from the stream.

    DecodeBlockHeader()

    Reads and decodes block of data.

    Declaration
    protected bool DecodeBlockHeader()
    Returns
    Type Description
    System.Boolean

    True if buffer was empty and new data was read, otherwise - False.

    DecodeDynHeader(out DecompressorHuffmanTree, out DecompressorHuffmanTree)

    Reades dynamic huffman codes from block header.

    Declaration
    protected void DecodeDynHeader(out DecompressorHuffmanTree lengthTree, out DecompressorHuffmanTree distanceTree)
    Parameters
    Type Name Description
    DecompressorHuffmanTree lengthTree

    Literals/Lengths tree.

    DecompressorHuffmanTree distanceTree

    Distances tree.

    FillBuffer()

    Fill`s empty parts of the buffer.

    Declaration
    protected void FillBuffer()

    PeekBits(Int32)

    Reads specified count of bits without adjusting position.

    Declaration
    protected int PeekBits(int count)
    Parameters
    Type Name Description
    System.Int32 count

    Count of bits to be read.

    Returns
    Type Description
    System.Int32

    Read value.

    Read(Byte[], Int32, Int32)

    Reads data to buffer.

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

    Output buffer for data.

    System.Int32 offset

    Offset in output data.

    System.Int32 length

    Length of the data to be read.

    Returns
    Type Description
    System.Int32

    Count of bytes actually read.

    ReadBits(Int32)

    Reads specified count of bits from stream.

    Declaration
    protected int ReadBits(int count)
    Parameters
    Type Name Description
    System.Int32 count

    Count of bits to be read.

    Returns
    Type Description
    System.Int32

    TODO: place correct comment here

    ReadInt16()

    TODO: place correct comment here

    Declaration
    protected int ReadInt16()
    Returns
    Type Description
    System.Int32

    TODO: place correct comment here

    ReadInt16Inverted()

    TODO: place correct comment here

    Declaration
    protected int ReadInt16Inverted()
    Returns
    Type Description
    System.Int32

    TODO: place correct comment here

    ReadInt32()

    TODO: place correct comment here

    Declaration
    protected long ReadInt32()
    Returns
    Type Description
    System.Int64

    TODO: place correct comment here

    ReadPackedBytes(Byte[], Int32, Int32)

    Reads array of bytes.

    Declaration
    protected int ReadPackedBytes(byte[] buffer, int offset, int length)
    Parameters
    Type Name Description
    System.Byte[] buffer

    Output buffer.

    System.Int32 offset

    Offset in output buffer.

    System.Int32 length

    Length of the data to be read.

    Returns
    Type Description
    System.Int32

    Count of bytes actually read to the buffer.

    ReadZLibHeader()

    Reads ZLib header with compression method and flags.

    Declaration
    protected void ReadZLibHeader()

    SkipBits(Int32)

    Skips specified count of bits.

    Declaration
    protected void SkipBits(int count)
    Parameters
    Type Name Description
    System.Int32 count

    Count of bits to be skipped.

    SkipToBoundary()

    Discards left-most partially used byte.

    Declaration
    protected void SkipToBoundary()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved