C# Class System.Windows.Forms.FileByteProvider

Byte provider for (big) files.
Inheritance: IByteProvider, IDisposable
Show file Open project: Zepheus/Fiesta_Utils

Public Methods

Method 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

Method Description
OnChanged ( EventArgs e ) : void

Raises the Changed event.

Never used.

Method Details

ApplyChanges() public method

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

DeleteBytes() public method

Not supported
public DeleteBytes ( long index, long length ) : void
index long
length long
return void

Dispose() public method

Releases the file handle used by the FileByteProvider.
public Dispose ( ) : void
return void

FileByteProvider() public method

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

HasChanges() public method

Returns a value if there are some changes.
public HasChanges ( ) : bool
return bool

InsertBytes() public method

Not supported
public InsertBytes ( long index, byte bs ) : void
index long
bs byte
return void

ReadByte() public method

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

RejectChanges() public method

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

SupportsDeleteBytes() public method

Returns false
public SupportsDeleteBytes ( ) : bool
return bool

SupportsInsertBytes() public method

Returns false
public SupportsInsertBytes ( ) : bool
return bool

SupportsWriteByte() public method

Returns true
public SupportsWriteByte ( ) : bool
return bool

WriteByte() public method

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