NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BufferedStream Methods

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

Public:

BeginRead (inherited from Stream) Begins an asynchronous read.
BeginWrite (inherited from Stream) Begins an asynchronous write.
Close Closes the stream and releases any resources (especially system resources such as sockets and file handles) associated with the current buffered stream.
EndRead (inherited from Stream) Ends a pending asynchronous read request.
EndWrite (inherited from Stream) Ends an asynchronous write.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Flush Updates the underlying data source or repository with the current state of the buffer and subsequently clears the buffer.
GetHashCode (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.
GetType (inherited from Object) Gets the Type of the Object.
Read Copies bytes from the current buffered stream to an array.
ReadByte Reads a byte from the underlying stream. Returns the byte cast to an int or-1 if reading from the end of the stream.
Seek Sets the position within the current buffered stream.
SetLength Sets the length of the buffered stream.
ToString (inherited from Object) Returns a String that represents the current Object.
Write Copies bytes to the buffered stream and advances the current position within the buffered stream by the number of bytes written.
WriteByte Writes a byte to the current position in the buffered stream.

Protected:

CreateWaitHandle (inherited from Stream) Allocates a WaitHandle object efficiently.
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

BufferedStream Class | System.IO Namespace