Skip to content

PeekableStream Constructors

Initializes a new instance of the PeekableStream class.

public PeekableStream(Stream stream, bool leaveOpen = true);

View source

Parameters

Name Type Description
stream Stream The underlying readable stream to wrap.
leaveOpen Boolean true to leave stream open when this stream is disposed; otherwise, false. Defaults to true.