Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BufferedStream Methods

The methods of the BufferedStream class are listed here. For a complete list of BufferedStream class members, see the BufferedStream Members topic.

Public Methods

public methodBeginRead (inherited from Stream) Begins an asynchronous read operation.
public methodBeginWrite (inherited from Stream) Begins an asynchronous write operation.
public methodClose Overridden. Closes the stream and releases any resources (especially system resources such as sockets and file handles) associated with the current buffered stream.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodEndRead (inherited from Stream) Waits for the pending asynchronous read to complete.
public methodEndWrite (inherited from Stream) Ends an asynchronous write operation.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodFlush Overridden. Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodRead Overridden. Copies bytes from the current buffered stream to an array.
public methodReadByte Overridden. 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.
public methodSeek Overridden. Sets the position within the current buffered stream.
public methodSetLength Overridden. Sets the length of the buffered stream.
public methodToString (inherited from Object) Returns a String that represents the current Object.
public methodWrite Overridden. Copies bytes to the buffered stream and advances the current position within the buffered stream by the number of bytes written.
public methodWriteByte Overridden. Writes a byte to the current position in the buffered stream.

Protected Methods

protected methodCreateWaitHandle (inherited from Stream) Allocates a WaitHandle object.
protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

BufferedStream Class | System.IO Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.