VFileStream Class
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9119)
Represents a stream for a virtual system file. This class provides members that are functionally similar to the standard .NET FileStream members.
Syntax
public class VFileStream : Stream, IAsyncDisposable, IDisposable
Inherited Members
Constructors
Name | Description |
---|---|
VFileStream(String, FileMode) | Initializes a new instance of the VFileStream
for a file identified by the |
VFileStream(String, FileMode, FileAccess) | Initializes a new instance of the VFileStream
for a file identified by the |
VFileStream(String, FileMode, FileAccess, FileShare) | Initializes a new instance of the VFileStream
for a file identified by the |
VFileStream(String, FileMode, FileAccess, FileShare, Int32) | Initializes a new instance of the VFileStream
for a file identified by the |
VFileStream(String, FileMode, FileAccess, FileShare, Int32, Boolean) | Initializes a new instance of the VFileStream
for a file identified by the |
VFileStream(String, FileMode, FileAccess, FileShare, Int32, FileOptions) | Initializes a new instance of the VFileStream
for a file identified by the |
Properties
Name | Description |
---|---|
CanRead | Gets a value indicating whether the stream is readable. |
CanSeek | Gets a value indicating whether the stream is seekable. |
CanWrite | Gets a value indicating whether the stream is writable. |
IsAsync | Gets a value that indicates if this stream was opened asynchronously. This property always returns false. Rebex virtual file systems now supports only synchronous methods. Argument 'async' in Rebex.IO.FileSystem.IO.VFileStream.#ctor(System.String,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,System.Int32,System.Boolean) constructor is ignored. |
Length | Gets the length of the stream. |
Name | Gets the path of the file. |
Position | Gets or sets the position within the stream. |
Methods
Name | Description |
---|---|
Dispose(Boolean) | Releases the unmanaged resources used by the Stream and optionally releases the managed resources. |
Flush() | Causes any buffered data to be written to the underlying stream. |
Read(Byte[], Int32, Int32) | Reads data from the stream. |
Seek(Int64, SeekOrigin) | Sets the position within the stream. |
SetLength(Int64) | Sets the length of the stream. |
Write(Byte[], Int32, Int32) | Writes data to the stream. |