docs.unity3d.com
    Show / Hide Table of Contents

    Class ThrowOnDisposedStream

    Inheritance
    Object
    MarshalByRefObject
    Stream
    ThrowOnDisposedStream
    Inherited Members
    Stream.Null
    Stream.CopyToAsync(Stream)
    Stream.CopyToAsync(Stream, Int32)
    Stream.CopyTo(Stream)
    Stream.CopyTo(Stream, Int32)
    Stream.Close()
    Stream.Dispose()
    Stream.FlushAsync()
    Stream.FlushAsync(CancellationToken)
    Stream.CreateWaitHandle()
    Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
    Stream.EndRead(IAsyncResult)
    Stream.ReadAsync(Byte[], Int32, Int32)
    Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
    Stream.EndWrite(IAsyncResult)
    Stream.WriteAsync(Byte[], Int32, Int32)
    Stream.Synchronized(Stream)
    Stream.ObjectInvariant()
    Stream.CanTimeout
    Stream.ReadTimeout
    Stream.WriteTimeout
    MarshalByRefObject.MemberwiseClone(Boolean)
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.CreateObjRef(Type)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: PvpXray
    Syntax
    public sealed class ThrowOnDisposedStream : Stream, IDisposable

    Constructors

    ThrowOnDisposedStream(Stream, Boolean)

    Declaration
    public ThrowOnDisposedStream(Stream stream, bool preventSeek = false)
    Parameters
    Type Name Description
    Stream stream
    Boolean preventSeek

    Properties

    CanRead

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

    CanSeek

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

    CanWrite

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

    Length

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

    Position

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

    Methods

    CopyToAsync(Stream, Int32, CancellationToken)

    Declaration
    public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Stream destination
    Int32 bufferSize
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Overrides
    Stream.CopyToAsync(Stream, Int32, CancellationToken)

    Dispose(Boolean)

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

    Flush()

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

    Read(Byte[], Int32, Int32)

    Declaration
    public override int Read(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    Returns
    Type Description
    Int32
    Overrides
    Stream.Read(Byte[], Int32, Int32)

    ReadAsync(Byte[], Int32, Int32, CancellationToken)

    Declaration
    public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Int32>
    Overrides
    Stream.ReadAsync(Byte[], Int32, Int32, CancellationToken)

    ReadByte()

    Declaration
    public override int ReadByte()
    Returns
    Type Description
    Int32
    Overrides
    Stream.ReadByte()

    Seek(Int64, SeekOrigin)

    Declaration
    public override long Seek(long offset, SeekOrigin origin)
    Parameters
    Type Name Description
    Int64 offset
    SeekOrigin origin
    Returns
    Type Description
    Int64
    Overrides
    Stream.Seek(Int64, SeekOrigin)

    SetLength(Int64)

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    Int64 value
    Overrides
    Stream.SetLength(Int64)

    Write(Byte[], Int32, Int32)

    Declaration
    public override void Write(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    Overrides
    Stream.Write(Byte[], Int32, Int32)

    WriteAsync(Byte[], Int32, Int32, CancellationToken)

    Declaration
    public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Byte[] buffer
    Int32 offset
    Int32 count
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Overrides
    Stream.WriteAsync(Byte[], Int32, Int32, CancellationToken)

    WriteByte(Byte)

    Declaration
    public override void WriteByte(byte value)
    Parameters
    Type Name Description
    Byte value
    Overrides
    Stream.WriteByte(Byte)
    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