C# Class System.Windows.Forms.FileByteProvider

Byte provider for (big) files.
Inheritance: IByteProvider, IDisposable
Afficher le fichier Open project: Zepheus/Fiesta_Utils

Méthodes publiques

Méthode Description
ApplyChanges ( ) : void

Updates the file with all changes the write buffer contains.

DeleteBytes ( long index, long length ) : void

Not supported

Dispose ( ) : void

Releases the file handle used by the FileByteProvider.

FileByteProvider ( string fileName ) : System

Initializes a new instance of the FileByteProvider class.

HasChanges ( ) : bool

Returns a value if there are some changes.

InsertBytes ( long index, byte bs ) : void

Not supported

ReadByte ( long index ) : byte

Reads a byte from the file.

RejectChanges ( ) : void

Clears the write buffer and reject all changes made.

SupportsDeleteBytes ( ) : bool

Returns false

SupportsInsertBytes ( ) : bool

Returns false

SupportsWriteByte ( ) : bool

Returns true

WriteByte ( long index, byte value ) : void

Writes a byte into write buffer

Private Methods

Méthode Description
OnChanged ( EventArgs e ) : void

Raises the Changed event.

Never used.

Method Details

ApplyChanges() public méthode

Updates the file with all changes the write buffer contains.
public ApplyChanges ( ) : void
Résultat void

DeleteBytes() public méthode

Not supported
public DeleteBytes ( long index, long length ) : void
index long
length long
Résultat void

Dispose() public méthode

Releases the file handle used by the FileByteProvider.
public Dispose ( ) : void
Résultat void

FileByteProvider() public méthode

Initializes a new instance of the FileByteProvider class.
public FileByteProvider ( string fileName ) : System
fileName string
Résultat System

HasChanges() public méthode

Returns a value if there are some changes.
public HasChanges ( ) : bool
Résultat bool

InsertBytes() public méthode

Not supported
public InsertBytes ( long index, byte bs ) : void
index long
bs byte
Résultat void

ReadByte() public méthode

Reads a byte from the file.
public ReadByte ( long index ) : byte
index long the index of the byte to read
Résultat byte

RejectChanges() public méthode

Clears the write buffer and reject all changes made.
public RejectChanges ( ) : void
Résultat void

SupportsDeleteBytes() public méthode

Returns false
public SupportsDeleteBytes ( ) : bool
Résultat bool

SupportsInsertBytes() public méthode

Returns false
public SupportsInsertBytes ( ) : bool
Résultat bool

SupportsWriteByte() public méthode

Returns true
public SupportsWriteByte ( ) : bool
Résultat bool

WriteByte() public méthode

Writes a byte into write buffer
public WriteByte ( long index, byte value ) : void
index long
value byte
Résultat void