FileStreamExensions 类 |
命名空间: XSharp
FileStreamExensions 类型公开以下成员。
名称 | 说明 | |
---|---|---|
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, Int32) | Read data from a stream. Contains TRY CATCH mechanism. Reads from current location. | |
SafeRead(FileStream, Byte, Int32, Int32) | 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, Int32) | 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, Int32) | 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, Int32) | 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. |