docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ThrowOnDisposedStream

    Inheritance
    object
    MarshalByRefObject
    Stream
    ThrowOnDisposedStream
    Implements
    IDisposable
    Inherited Members
    Stream.Null
    Stream.CopyToAsync(Stream)
    Stream.CopyToAsync(Stream, int)
    Stream.CopyTo(Stream)
    Stream.CopyTo(Stream, int)
    Stream.Close()
    Stream.Dispose()
    Stream.FlushAsync()
    Stream.FlushAsync(CancellationToken)
    Stream.BeginRead(byte[], int, int, AsyncCallback, object)
    Stream.EndRead(IAsyncResult)
    Stream.ReadAsync(byte[], int, int)
    Stream.BeginWrite(byte[], int, int, AsyncCallback, object)
    Stream.EndWrite(IAsyncResult)
    Stream.WriteAsync(byte[], int, int)
    Stream.Synchronized(Stream)
    Stream.CanTimeout
    Stream.ReadTimeout
    Stream.WriteTimeout
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.CreateObjRef(Type)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: PvpXray
    Assembly: solution.dll
    Syntax
    public sealed class ThrowOnDisposedStream : Stream, IDisposable

    Constructors

    Name Description
    ThrowOnDisposedStream(Stream, bool)

    Properties

    Name Description
    CanRead

    When overridden in a derived class, gets a value indicating whether the current stream supports reading.

    CanSeek

    When overridden in a derived class, gets a value indicating whether the current stream supports seeking.

    CanWrite

    When overridden in a derived class, gets a value indicating whether the current stream supports writing.

    Length

    When overridden in a derived class, gets the length in bytes of the stream.

    Position

    When overridden in a derived class, gets or sets the position within the current stream.

    Methods

    Name Description
    CopyToAsync(Stream, int, CancellationToken)

    Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.

    Dispose(bool)

    Releases the unmanaged resources used by the Stream and optionally releases the managed resources.

    Flush()

    When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.

    Read(byte[], int, int)

    When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

    ReadAsync(byte[], int, int, CancellationToken)

    Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.

    ReadByte()

    Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

    Seek(long, SeekOrigin)

    When overridden in a derived class, sets the position within the current stream.

    SetLength(long)

    When overridden in a derived class, sets the length of the current stream.

    Write(byte[], int, int)

    When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

    WriteAsync(byte[], int, int, CancellationToken)

    Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.

    WriteByte(byte)

    Writes a byte to the current position in the stream and advances the position within the stream by one byte.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)