Synced
OwnedReadStream.Constructor
Section titled “OwnedReadStream.Constructor”
- Transfers a readable stream and its independent lifetime pin into this wrapper.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.IO
Declaration
Section titled “Declaration”public Inno.Core.IO.OwnedReadStream.OwnedReadStream(System.IO.Stream input, System.IDisposable owner)Parameters
Section titled “Parameters”Parameter input: The owned readable stream; it is closed before its pin is released.
Parameter owner: The owned pin whose repeated disposal must safely retry unfinished retirement.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The stream is not readable.