FileStreamExensions Methods |
The FileStreamExensions type exposes the following members.
Name | Description | |
---|---|---|
SafeLock | Locks a region in a stream. Contains TRY CATCH mechanism. | |
SafeRead(FileStream, Byte) | Read data from a stream. Assumes that the whole buffer must be read. Reads from current location. | |
SafeRead(FileStream, Byte, Long) | Read data from a stream. Contains TRY CATCH mechanism. Reads from current location. | |
SafeRead(FileStream, Byte, Long, Long) | Read data from a stream. Contains TRY CATCH mechanism. Reads from current location. | |
SafeReadAt(FileStream, Int64, Byte) | Read data at a location in the file. Makes sure that file locations are >= 0. Assumes whole buffer must be read. | |
SafeReadAt(FileStream, Int64, Byte, Long) | Read data at a location in the file. Makes sure that file locations are >= 0 | |
SafeSetLength | Sets the length of a stream. Contains TRY CATCH mechanism. | |
SafeSetPos | Sets the location of a stream. Contains TRY CATCH mechanism. . | |
SafeUnlock | Unlocks a region in a stream. Contains TRY CATCH mechanism. | |
SafeWrite(FileStream, Byte) | Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location. Assumes the whole buffer must be written. | |
SafeWrite(FileStream, Byte, Long) | Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location. | |
SafeWriteAt(FileStream, Int64, Byte) | Write data at a location in the file. Makes sure that file locations are >= 0. Assumes whole buffer must be written. | |
SafeWriteAt(FileStream, Int64, Byte, Long) | Write data at a location in the file. Makes sure that file locations are >= 0. | |
SafeWriteByte | Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location. |