docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackedFileStream

    An extended file stream that tracks closing and disposing

    Inheritance
    Object
    TrackedFileStream
    Namespace: ICSharpCode.SharpZipLib.Tests.TestSupport
    Syntax
    public class TrackedFileStream : FileStream

    Constructors

    TrackedFileStream(String, FileMode, FileAccess)

    Initializes a new instance of the TrackedMemoryStream class.

    Declaration
    public TrackedFileStream(string path, FileMode mode = null, FileAccess access = null)
    Parameters
    Type Name Description
    String path
    FileMode mode
    FileAccess access

    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.

    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