C# Класс Be.Windows.Forms.FileByteProvider

Byte provider for (big) files.
Наследование: IByteProvider, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
OnChanged ( EventArgs e ) : void

Raises the Changed event.

Never used.

Описание методов

ApplyChanges() публичный Метод

Updates the file with all changes the write buffer contains.
public ApplyChanges ( ) : void
Результат void

DeleteBytes() публичный Метод

Not supported
public DeleteBytes ( long index, long length ) : void
index long
length long
Результат void

Dispose() публичный Метод

Releases the file handle used by the FileByteProvider.
public Dispose ( ) : void
Результат void

FileByteProvider() публичный Метод

Initializes a new instance of the FileByteProvider class.
public FileByteProvider ( string fileName ) : System
fileName string
Результат System

HasChanges() публичный Метод

Returns a value if there are some changes.
public HasChanges ( ) : bool
Результат bool

InsertBytes() публичный Метод

Not supported
public InsertBytes ( long index, byte bs ) : void
index long
bs byte
Результат void

ReadByte() публичный Метод

Reads a byte from the file.
public ReadByte ( long index ) : byte
index long the index of the byte to read
Результат byte

RejectChanges() публичный Метод

Clears the write buffer and reject all changes made.
public RejectChanges ( ) : void
Результат void

SupportsDeleteBytes() публичный Метод

Returns false
public SupportsDeleteBytes ( ) : bool
Результат bool

SupportsInsertBytes() публичный Метод

Returns false
public SupportsInsertBytes ( ) : bool
Результат bool

SupportsWriteByte() публичный Метод

Returns true
public SupportsWriteByte ( ) : bool
Результат bool

WriteByte() публичный Метод

Writes a byte into write buffer
public WriteByte ( long index, byte value ) : void
index long
value byte
Результат void