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 Members

Public:

Constructor

BufferedStream Constructor Overloaded. Initializes a new instance of the BufferedStream class.

Properties

CanRead Determines whether the current stream supports reading.
CanSeek Determines whether the current stream supports seeking.
CanWrite Determines whether the current stream supports writing.
DataAvailable Determines whether data is available for reading without blocking.
Length Retrieves the stream length in bytes.
Position Determines the current position within the current stream.

Methods

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:

Methods

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