System.IO.BufferedStream Members

The members of System.IO.BufferedStream are listed below.

See Also: Inherited members from System.IO.Stream

Public Constructors

Initializes a new instance of the System.IO.BufferedStream class with a default buffer size of 4096 bytes.

Initializes a new instance of the System.IO.BufferedStream class with the specified buffer size.

Public Properties

[read-only]
override
CanReadbool.

Gets a value indicating whether the current stream supports reading.

[read-only]
override
CanSeekbool.

Gets a value indicating whether the current stream supports seeking.

[read-only]
override
CanWritebool.

Gets a value indicating whether the current stream supports writing.

[read-only]
override
Lengthlong.

Gets the stream length in bytes.

override
Positionlong.

Gets the position within the current stream.

Public Methods

override
Close()
Documentation for this section has not yet been entered.
override
Flush()

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

override
Read(byte[], int, int) : int

Copies bytes from the current buffered stream to an array.

override
ReadByte() : int

Reads a byte from the underlying stream and returns the byte cast to an int, or returns -1 if reading from the end of the stream.

override
Seek(long, SeekOrigin) : long

Sets the position within the current buffered stream.

override
SetLength(long)

Sets the length of the buffered stream.

override
Write(byte[], int, int)

Copies bytes to the buffered stream and advances the current position within the buffered stream by the number of bytes written.

override
WriteByte(byte)

Writes a byte to the current position in the buffered stream.

Protected Methods

override
Dispose(bool)
Documentation for this section has not yet been entered.