C# Class System.Windows.Forms.DynamicByteProvider

Byte provider for a small amount of data.
Inheritance: IByteProvider
Afficher le fichier Open project: Zepheus/Fiesta_Utils

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
OnChanged ( EventArgs e ) : void

Raises the Changed event.

OnLengthChanged ( EventArgs e ) : void

Raises the LengthChanged event.

Method Details

ApplyChanges() public méthode

Applies changes.
public ApplyChanges ( ) : void
Résultat void

DeleteBytes() public méthode

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.
Résultat void

DynamicByteProvider() public méthode

Initializes a new instance of the DynamicByteProvider class.
public DynamicByteProvider ( ByteCollection bytes ) : System
bytes ByteCollection
Résultat System

DynamicByteProvider() public méthode

Initializes a new instance of the DynamicByteProvider class.
public DynamicByteProvider ( byte data ) : System
data byte
Résultat System

HasChanges() public méthode

True, when changes are done.
public HasChanges ( ) : bool
Résultat bool

InsertBytes() public méthode

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
Résultat void

ReadByte() public méthode

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

SupportsDeleteBytes() public méthode

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

SupportsInsertBytes() public méthode

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

SupportsWriteByte() public méthode

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

WriteByte() public méthode

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
Résultat void