docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackedMemoryStream

    An extended memory stream that tracks closing and disposing

    Inheritance
    Object
    TrackedMemoryStream
    MemoryStreamWithoutSeek
    Namespace: ICSharpCode.SharpZipLib.Tests.TestSupport
    Syntax
    public class TrackedMemoryStream : MemoryStream

    Constructors

    TrackedMemoryStream()

    Initializes a new instance of the TrackedMemoryStream class.

    Declaration
    public TrackedMemoryStream()

    TrackedMemoryStream(Byte[])

    Initializes a new instance of the TrackedMemoryStream class.

    Declaration
    public TrackedMemoryStream(byte[] buffer)
    Parameters
    Type Name Description
    Byte[] buffer

    The buffer.

    Properties

    IsClosed

    Gets a value indicating whether this instance is closed.

    Declaration
    public bool IsClosed { get; }
    Property Value
    Type Description
    Boolean

    true if this instance is closed; otherwise, false.

    IsDisposed

    Gets a value indicating whether this instance is disposed.

    Declaration
    public bool IsDisposed { get; }
    Property Value
    Type Description
    Boolean

    true if this instance is disposed; otherwise, false.

    Methods

    Close()

    Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.

    Declaration
    public override void Close()

    Dispose(Boolean)

    Releases the unmanaged resources used by the MemoryStream class and optionally releases the managed resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    WriteLEInt(Int32)

    Write an int value in little endian order.

    Declaration
    public void WriteLEInt(int value)
    Parameters
    Type Name Description
    Int32 value

    WriteLEShort(Int16)

    Write a short value in Little Endian order

    Declaration
    public void WriteLEShort(short value)
    Parameters
    Type Name Description
    Int16 value
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023