Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

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
Inheritance
Object
MarshalByRefObject
Stream
VFileStream
Implements
IAsyncDisposable
IDisposable
Inherited Members
Stream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
Stream.CanTimeout
Stream.Close()
Stream.CopyTo(Stream)
Stream.CopyTo(Stream, Int32)
Stream.CopyToAsync(Stream)
Stream.CopyToAsync(Stream, Int32)
Stream.CopyToAsync(Stream, Int32, CancellationToken)
Stream.CopyToAsync(Stream, CancellationToken)
Stream.CreateWaitHandle()
Stream.Dispose()
Stream.DisposeAsync()
Stream.EndRead(IAsyncResult)
Stream.EndWrite(IAsyncResult)
Stream.FlushAsync()
Stream.FlushAsync(CancellationToken)
Stream.Null
Stream.ObjectInvariant()
Stream.Read(Span<Byte>)
Stream.ReadAsync(Byte[], Int32, Int32)
Stream.ReadAsync(Byte[], Int32, Int32, CancellationToken)
Stream.ReadAsync(Memory<Byte>, CancellationToken)
Stream.ReadAtLeast(Span<Byte>, Int32, Boolean)
Stream.ReadAtLeastAsync(Memory<Byte>, Int32, Boolean, CancellationToken)
Stream.ReadByte()
Stream.ReadExactly(Byte[], Int32, Int32)
Stream.ReadExactly(Span<Byte>)
Stream.ReadExactlyAsync(Byte[], Int32, Int32, CancellationToken)
Stream.ReadExactlyAsync(Memory<Byte>, CancellationToken)
Stream.ReadTimeout
Stream.Synchronized(Stream)
Stream.ValidateBufferArguments(Byte[], Int32, Int32)
Stream.ValidateCopyToArguments(Stream, Int32)
Stream.Write(ReadOnlySpan<Byte>)
Stream.WriteAsync(Byte[], Int32, Int32)
Stream.WriteAsync(Byte[], Int32, Int32, CancellationToken)
Stream.WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)
Stream.WriteByte(Byte)
Stream.WriteTimeout
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(Boolean)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
VFileStream(String, FileMode)

Initializes a new instance of the VFileStream for a file identified by the path, required mode and with ReadWrite access. A caller must dispose the returned stream.

VFileStream(String, FileMode, FileAccess)

Initializes a new instance of the VFileStream for a file identified by the path, required mode and requested access. A caller must dispose the returned stream. Arguments share and bufferSize are not used.

VFileStream(String, FileMode, FileAccess, FileShare)

Initializes a new instance of the VFileStream for a file identified by the path, required mode and requested access. A caller must dispose the returned stream. Argument share is not used.

VFileStream(String, FileMode, FileAccess, FileShare, Int32)

Initializes a new instance of the VFileStream for a file identified by the path, required mode and requested access. A caller must dispose the returned stream. Arguments share and bufferSize are not used.

VFileStream(String, FileMode, FileAccess, FileShare, Int32, Boolean)

Initializes a new instance of the VFileStream for a file identified by the path, required mode and requested access. A caller must dispose the returned stream. Arguments share, bufferSize and useAsync are not used.

VFileStream(String, FileMode, FileAccess, FileShare, Int32, FileOptions)

Initializes a new instance of the VFileStream for a file identified by the path, required mode and requested access. A caller must dispose the returned stream. Arguments share, bufferSize are not used.

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.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies