点击或拖拽改变大小

FileStreamExensions 方法

X#

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.
Top
参见