The ExtendedStream type exposes the following members.
Methods
Type | Name | Description |
---|---|---|
![]() | BeginRead | Begins an asynchronous read operation. (Inherited from Stream.) |
![]() | BeginWrite | Begins an asynchronous write operation. (Inherited from Stream.) |
![]() | Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. (Inherited from Stream.) |
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | CreateWaitHandle | Obsolete. Allocates a WaitHandle object. (Inherited from Stream.) |
![]() | Dispose | Overloaded. |
![]() | EndRead | Waits for the pending asynchronous read to complete. (Inherited from Stream.) |
![]() | EndWrite | Ends an asynchronous write operation. (Inherited from Stream.) |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | Flush | 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.) |
![]() | GetHashCode | 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.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone | Overloaded. |
![]() | Read | 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.) |
![]() | ReadAt | 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 ValueThe 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. |
![]() | ReadByte | 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.) |
![]() | Seek | When overridden in a derived class, sets the position within the current stream. (Inherited from Stream.) |
![]() | SetLength | When overridden in a derived class, sets the length of the current stream. (Inherited from Stream.) |
![]() | ToString | Returns a String that represents the current Object. (Inherited from Object.) |
![]() | Write | 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.) |
![]() | WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from Stream.) |