C# Класс System.Windows.Forms.DynamicByteProvider

Byte provider for a small amount of data.
Наследование: IByteProvider
Показать файл Открыть проект

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

Метод Описание
ApplyChanges ( ) : void

Applies changes.

DeleteBytes ( long index, long length ) : void

Deletes bytes from the byte collection.

DynamicByteProvider ( ByteCollection bytes ) : System

Initializes a new instance of the DynamicByteProvider class.

DynamicByteProvider ( byte data ) : System

Initializes a new instance of the DynamicByteProvider class.

HasChanges ( ) : bool

True, when changes are done.

InsertBytes ( long index, byte bs ) : void

Inserts byte into the byte collection.

ReadByte ( long index ) : byte

Reads a byte from the byte collection.

SupportsDeleteBytes ( ) : bool

Returns true

SupportsInsertBytes ( ) : bool

Returns true

SupportsWriteByte ( ) : bool

Returns true

WriteByte ( long index, byte value ) : void

Write a byte into the byte collection.

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

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

Raises the Changed event.

OnLengthChanged ( EventArgs e ) : void

Raises the LengthChanged event.

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

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

Applies changes.
public ApplyChanges ( ) : void
Результат void

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

Deletes bytes from the byte collection.
public DeleteBytes ( long index, long length ) : void
index long the start index of the bytes to delete.
length long the length of bytes to delete.
Результат void

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

Initializes a new instance of the DynamicByteProvider class.
public DynamicByteProvider ( ByteCollection bytes ) : System
bytes ByteCollection
Результат System

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

Initializes a new instance of the DynamicByteProvider class.
public DynamicByteProvider ( byte data ) : System
data byte
Результат System

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

True, when changes are done.
public HasChanges ( ) : bool
Результат bool

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

Inserts byte into the byte collection.
public InsertBytes ( long index, byte bs ) : void
index long the start index of the bytes in the byte collection
bs byte the byte array to insert
Результат void

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

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

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

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

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

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

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

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

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

Write a byte into the byte collection.
public WriteByte ( long index, byte value ) : void
index long the index of the byte to write.
value byte the byte
Результат void