Summary
Reads on this stream are implemented as peeking into the parent stream. That is, the position of the parent stream
is unaffected when this stream is used to peek ahead of the current position in the parent stream.
Instance methods
void | | Does nothing. |
int | Read(byte[] buffer, int offset, int count) |
Peeks at most the specified number of bytes from the parent stream. Because the peek stream maintains its own
position, subsequent calls to this method will peek further and further into the parent stream. Note however that
direct operations on the parent's underlying stream can break the sequence, and that some calls on the parent
stream will reset this position. All such calls are documented to this effect.
|
long | Seek(long offset, SeekOrigin origin) | Throws a NotSupportedException. |
void | |
void | Write(byte[] buffer, int offset, int count) |
Instance properties
bool | | Always returns true. |
bool | | Always returns false. |
bool | |
bool | | Initially true. Whenever the parent stream's position overtakes the position of this stream, changes to
false. In this state, attempts to read will throw an InvalidOperationException and the stream
becomes useless. |
long | | Throws a NotSupportedException. |
long | |