Synced
OwnedReadStream
Section titled “OwnedReadStream”
- Keeps an independent read stream and its lifetime pin owned together until both retire.
Required contracts
Section titled “Required contracts”API: engine
Inherits: System.IO.Stream
Project: Inno.Core.IO
Declaration
Section titled “Declaration”public sealed class Inno.Core.IO.OwnedReadStream : System.IO.StreamMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | OwnedReadStream.Constructor | Transfers a readable stream and its independent lifetime pin into this wrapper. |
| Methods | OwnedReadStream.Dispose | Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources. |
| Methods | OwnedReadStream.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. |
| Methods | OwnedReadStream.Read(System.Byte[],System.Int32,System.Int32) | 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. |
| Methods | OwnedReadStream.Read(System.Span{System.Byte}) | 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. |
| Methods | OwnedReadStream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.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. |
| Methods | OwnedReadStream.ReadAsync(System.Memory{System.Byte},System.Threading.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. |
| Methods | OwnedReadStream.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. |
| Methods | OwnedReadStream.Seek | When overridden in a derived class, sets the position within the current stream. |
| Methods | OwnedReadStream.SetLength | When overridden in a derived class, sets the length of the current stream. |
| Methods | OwnedReadStream.Write | 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. |
| Properties | OwnedReadStream.CanRead | When overridden in a derived class, gets a value indicating whether the current stream supports reading. |
| Properties | OwnedReadStream.CanSeek | When overridden in a derived class, gets a value indicating whether the current stream supports seeking. |
| Properties | OwnedReadStream.CanWrite | When overridden in a derived class, gets a value indicating whether the current stream supports writing. |
| Properties | OwnedReadStream.Length | When overridden in a derived class, gets the length in bytes of the stream. |
| Properties | OwnedReadStream.Position | When overridden in a derived class, gets or sets the position within the current stream. |