XsBufferedFileStream Methods |
The XsBufferedFileStream type exposes the following members.
Name | Description | |
---|---|---|
Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed. (Overrides Close.) | |
Flush | Clears buffers for this stream and causes any buffered data to be written to the file. (Inherited from XsFileStream.) | |
Flush(Logic) | Clears buffers for this stream and causes any buffered data to be written to the file, and also clears all intermediate file buffers. (Overrides Flush(Logic).) | |
Lock | Prevents other processes from reading from or writing to the FileStream. (Inherited from XsFileStream.) | |
Read | Reads a block of bytes from the stream and writes the data in a given buffer. (Overrides Read(Byte, Long, Long).) | |
Seek | Sets the current position of this stream to the given value. (Overrides Seek(Int64, SeekOrigin).) | |
SetLength | Sets the length of this stream to the given value. (Overrides SetLength(Int64).) | |
Unlock | Allows access by other processes to all or part of a file that was previously locked. (Inherited from XsFileStream.) | |
Write | Writes a block of bytes to the file stream. (Overrides Write(Byte, Long, Long).) | |
WriteByte | Writes a byte to the current position in the file stream. (Overrides WriteByte(Byte).) | |
XRead | Bypass the buffered Read mechanism and call the original Read() method in the base class | |
XWrite | Bypass the buffered Write mechanism and call the original Write() method in the base class |
Name | Description | |
---|---|---|
SafeLock | Locks a region in a stream. Contains TRY CATCH mechanism. (Defined by FileStreamExensions.) | |
SafeRead(Byte) | Overloaded. Read data from a stream. Assumes that the whole buffer must be read. Reads from current location. (Defined by FileStreamExensions.) | |
SafeRead(Byte, Long) | Overloaded. Read data from a stream. Contains TRY CATCH mechanism. Reads from current location. (Defined by FileStreamExensions.) | |
SafeRead(Byte, Long, Long) | Overloaded. Read data from a stream. Contains TRY CATCH mechanism. Reads from current location. (Defined by FileStreamExensions.) | |
SafeReadAt(Int64, Byte) | Overloaded. Read data at a location in the file. Makes sure that file locations are >= 0. Assumes whole buffer must be read. (Defined by FileStreamExensions.) | |
SafeReadAt(Int64, Byte, Long) | Overloaded. Read data at a location in the file. Makes sure that file locations are >= 0 (Defined by FileStreamExensions.) | |
SafeSetLength | Sets the length of a stream. Contains TRY CATCH mechanism. (Defined by FileStreamExensions.) | |
SafeSetPos | Sets the location of a stream. Contains TRY CATCH mechanism. . (Defined by FileStreamExensions.) | |
SafeUnlock | Unlocks a region in a stream. Contains TRY CATCH mechanism. (Defined by FileStreamExensions.) | |
SafeWrite(Byte) | Overloaded. Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location. Assumes the whole buffer must be written. (Defined by FileStreamExensions.) | |
SafeWrite(Byte, Long) | Overloaded. Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location. (Defined by FileStreamExensions.) | |
SafeWriteAt(Int64, Byte) | Overloaded. Write data at a location in the file. Makes sure that file locations are >= 0. Assumes whole buffer must be written. (Defined by FileStreamExensions.) | |
SafeWriteAt(Int64, Byte, Long) | Overloaded. Write data at a location in the file. Makes sure that file locations are >= 0. (Defined by FileStreamExensions.) | |
SafeWriteByte | Write data to a stream. Contains TRY CATCH mechanism. Writes to the current location. (Defined by FileStreamExensions.) |