The ExtendedStream type exposes the following members.

ToggleMethods

Type NameDescription
Public methodBeginRead
Begins an asynchronous read operation.
(Inherited from Stream.)
Public methodBeginWrite
Begins an asynchronous write operation.
(Inherited from Stream.)
Public methodClose
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
(Inherited from Stream.)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Protected methodCreateWaitHandle Obsolete.
Allocates a WaitHandle object.
(Inherited from Stream.)
Public methodDisposeOverloaded.
Public methodEndRead
Waits for the pending asynchronous read to complete.
(Inherited from Stream.)
Public methodEndWrite
Ends an asynchronous write operation.
(Inherited from Stream.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
(Inherited from Stream.)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseCloneOverloaded.
Public methodRead
When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
(Inherited from Stream.)
Public methodReadAt
Sets the input stream to the specified position, then reads up to count bytes of data from the input stream into an array of bytes. This method attempts to read as many as count bytes, but a smaller number might be read. The number of bytes read is returned as an integer.

This method blocks until input data is available, the end of the stream is detected, or an exception is thrown. This method does not close the embedded stream when the end of the file is reached.

If count is zero (0), then no bytes are read and this method returns 0; otherwise, this method attempts to read at least one byte. If no byte is available because the stream is at the end of the file, this method returns zero (0); otherwise, this method reads at least one byte and stores the value into buffer.

The first byte read is stored into element buffer[offset], the next one into buffer[offset+1], and so on. The number of bytes read is, at most, equal to count. Let k be the number of bytes actually read; these bytes will be stored in elements buffer[offset] through buffer[offset+k-1], leaving elements buffer[offset+k] through buffer[offset+count-1] unaffected.

In every case, elements buffer[0] through buffer[offset] and elements buffer[offset+count] through buffer[buffer.Length-1] are unaffected.

A long that specifies the position from which to begin reading the input stream. An array of bytes that is the buffer into which the data is read. When this method returns, the buffer contains the specified byte array with the values between offset and (offset+count-1) replaced by the bytes read from the current source. The byte offset in array buffer at which to begin writing the data read from the current input stream. The maximum number of bytes to read from the current stream.

Return Value

The total number of bytes read into the buffer, or zero (0) if the end of the stream is reached. Returns zero (0) if count is zero.
Public methodReadByte
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
(Inherited from Stream.)
Public methodSeek
When overridden in a derived class, sets the position within the current stream.
(Inherited from Stream.)
Public methodSetLength
When overridden in a derived class, sets the length of the current stream.
(Inherited from Stream.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWrite
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
(Inherited from Stream.)
Public methodWriteByte
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
(Inherited from Stream.)

ToggleSee Also