Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: PeekableStream.PeekStream GetPeekStream()

Declaration

public PeekableStream.PeekStream GetPeekStream()

Summary

Creates and returns a new peek stream linked to this stream. Reading from the returned stream allows peeking at the bytes ahead of the current position in this stream, without changing the outcome of future calls to any methods on this stream.

The returned stream must be disposed of when done, since outstanding undisposed peek streams have a slight performance impact on most operations on this peekable stream.

See Remarks on PeekableStream for more info.