Click or drag to resize

FileStreamExensions Methods

X#

The FileStreamExensions type exposes the following members.

Functions
  NameDescription
Public methodStatic memberSafeLock
Locks a region in a stream. Contains TRY CATCH mechanism.
Public methodStatic memberSafeRead(FileStream, Byte)
Read data from a stream. Assumes that the whole buffer must be read. Reads from current location.
Public methodStatic memberSafeRead(FileStream, Byte, Long)
Read data from a stream. Contains TRY CATCH mechanism. Reads from current location.
Public methodStatic memberSafeRead(FileStream, Byte, Long, Long)
Read data from a stream. Contains TRY CATCH mechanism. Reads from current location.
Public methodStatic memberSafeReadAt(FileStream, Int64, Byte)
Read data at a location in the file. Makes sure that file locations are >= 0. Assumes whole buffer must be read.
Public methodStatic memberSafeReadAt(FileStream, Int64, Byte, Long)
Read data at a location in the file. Makes sure that file locations are >= 0
Public methodStatic memberSafeSetLength
Sets the length of a stream. Contains TRY CATCH mechanism.
Public methodStatic memberSafeSetPos
Sets the location of a stream. Contains TRY CATCH mechanism. .
Public methodStatic memberSafeUnlock
Unlocks a region in a stream. Contains TRY CATCH mechanism.
Public methodStatic memberSafeWrite(FileStream, Byte)
Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location. Assumes the whole buffer must be written.
Public methodStatic memberSafeWrite(FileStream, Byte, Long)
Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location.
Public methodStatic memberSafeWriteAt(FileStream, Int64, Byte)
Write data at a location in the file. Makes sure that file locations are >= 0. Assumes whole buffer must be written.
Public methodStatic memberSafeWriteAt(FileStream, Int64, Byte, Long)
Write data at a location in the file. Makes sure that file locations are >= 0.
Public methodStatic memberSafeWriteByte
Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location.
Top
See Also