alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ZippedContentStream

    Inheritance
    object
    MarshalByRefObject
    Stream
    ZippedContentStream
    Implements
    IDisposable
    Inherited Members
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.MemberwiseClone(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Stream.BeginRead(byte[], int, int, AsyncCallback, object)
    Stream.BeginWrite(byte[], int, int, AsyncCallback, object)
    Stream.CanTimeout
    Stream.Close()
    Stream.CopyTo(Stream)
    Stream.CopyTo(Stream, int)
    Stream.CopyToAsync(Stream)
    Stream.CopyToAsync(Stream, int)
    Stream.CopyToAsync(Stream, int, CancellationToken)
    Stream.CreateWaitHandle()
    Stream.Dispose()
    Stream.Dispose(bool)
    Stream.EndRead(IAsyncResult)
    Stream.EndWrite(IAsyncResult)
    Stream.FlushAsync()
    Stream.FlushAsync(CancellationToken)
    Stream.Null
    Stream.ObjectInvariant()
    Stream.ReadAsync(byte[], int, int)
    Stream.ReadAsync(byte[], int, int, CancellationToken)
    Stream.ReadByte()
    Stream.ReadTimeout
    Stream.Synchronized(Stream)
    Stream.WriteAsync(byte[], int, int)
    Stream.WriteAsync(byte[], int, int, CancellationToken)
    Stream.WriteByte(byte)
    Stream.WriteTimeout
    Namespace: Syncfusion.Compression.Zip
    Assembly: Syncfusion.Compression.NET.dll
    Syntax
    public class ZippedContentStream : Stream, IDisposable

    Constructors

    ZippedContentStream(CompressorCreator)

    Initializes new instance of the stream.

    Declaration
    public ZippedContentStream(ZipArchive.CompressorCreator createCompressor)
    Parameters
    Type Name Description
    ZipArchive.CompressorCreator createCompressor

    Properties

    CanRead

    Gets a value indicating whether the current stream supports reading. Read-only.

    Declaration
    public override bool CanRead { get; }
    Property Value
    Type
    bool
    Overrides
    Stream.CanRead

    CanSeek

    Gets a value indicating whether the current stream supports seeking. Read-only.

    Declaration
    public override bool CanSeek { get; }
    Property Value
    Type
    bool
    Overrides
    Stream.CanSeek

    CanWrite

    Gets a value indicating whether the current stream supports writing. Read-only.

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type
    bool
    Overrides
    Stream.CanWrite

    Crc32

    Returns computed crc32 value. Read-only.

    Declaration
    [CLSCompliant(false)]
    public uint Crc32 { get; }
    Property Value
    Type
    uint

    Length

    Gets the length in bytes of the stream. Read-only.

    Declaration
    public override long Length { get; }
    Property Value
    Type
    long
    Overrides
    Stream.Length

    Position

    Gets or sets the position within the current stream. Read-only.

    Declaration
    public override long Position { get; set; }
    Property Value
    Type
    long
    Overrides
    Stream.Position

    UnzippedSize

    Returns size of the unzipped data. Read-only.

    Declaration
    public long UnzippedSize { get; }
    Property Value
    Type
    long

    ZippedContent

    This property returns stream with zipped content. It closes internal deflate stream, so you won't be able to write anything in int. Read-only.

    Declaration
    public Stream ZippedContent { get; }
    Property Value
    Type
    Stream

    Methods

    Flush()

    Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

    Declaration
    public override void Flush()
    Overrides
    Stream.Flush()

    Read(byte[], int, int)

    Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

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

    An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.

    int offset

    The zero-based byte offset in buffer at which to begin storing the data read from the current stream.

    int count

    The maximum number of bytes to be read from the current stream.

    Returns
    Type Description
    int

    The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.

    Overrides
    Stream.Read(byte[], int, int)

    Seek(long, SeekOrigin)

    Sets the position within the current stream.

    Declaration
    public override long Seek(long offset, SeekOrigin origin)
    Parameters
    Type Name Description
    long offset

    A byte offset relative to the origin parameter.

    SeekOrigin origin

    A value of type SeekOrigin indicating the reference point used to obtain the new position.

    Returns
    Type Description
    long

    The new position within the current stream.

    Overrides
    Stream.Seek(long, SeekOrigin)

    SetLength(long)

    Sets the length of the current stream.

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    long value

    The desired length of the current stream in bytes.

    Overrides
    Stream.SetLength(long)

    Write(byte[], int, int)

    Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

    Declaration
    public override void Write(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    byte[] buffer

    An array of bytes. This method copies count bytes from buffer to the current stream.

    int offset

    The zero-based byte offset in buffer at which to begin copying bytes to the current stream.

    int count

    The number of bytes to be written to the current stream.

    Overrides
    Stream.Write(byte[], int, int)

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved