Stream

Stream


Provides a set of standard methods for using a Stream object.


Remarks

This interface should be implements on classes that wish to be used as a Stream type object.

See Also

Project VBCorLib Overview | StreamStatic | FileStream | MemoryStream | CryptoStream

Public:

Types:

NameDescription
 SeekOriginThe reference point in which to begin seeking from. 

Properties:

NameDescription
 CanRead (get)Returns if the stream supports reading. 
 CanSeek (get)Returns if the stream supports seeking. 
 CanTimeout (get)Returns if the Stream object can timeout during a read or write operation. 
 CanWrite (get)Returns if the stream supports being written to. 
 Length (get)Returns the length of the stream in bytes. 
 Position (get)Returns the current position within the stream. 
 Position (let)Sets the position in the stream where the next read or write will take place. 
 ReadTimeout (get)Returns the duration allowed before a timeout will occur. 
 ReadTimeout (let)Sets the duration allowed before a timeout will occur. 
 WriteTimeout (get)Returns the duration allowed before a timeout will occur. 
 WriteTimeout (let)Sets the duration allowed before a timeout will occur. 

Methods:

NameDescription
 BeginReadBegins an Asynchronous reading process. 
 BeginWriteBegins an Asynchronous writing process. 
 CloseStreamCloses the current stream. 
 EndReadEnds an asynchronous read operation returning the total number of bytes read. 
 EndWriteUsed to end an asynchronous write operation. 
 EqualsDetermines if this instance is equal to the value. 
 FlushFlushes any buffers in the object to the underlying stream. 
 GetHashCodeReturns a semi-unique number representing this instance. 
 ReadBlockReads a block of bytes from the stream. 
 ReadByteReads a single byte from the stream. 
 SeekPositionMoves the current stream pointer to a new position. 
 SetLengthSets the length of the current stream. 
 ToStringReturns a string representation of the this instance. 
 WriteBlockWrites an array of bytes to the stream. 
 WriteByteWrites a single byte to the stream.