C# Class System.Windows.Forms.DynamicByteProvider

Byte provider for a small amount of data.
Inheritance: IByteProvider
Show file Open project: Zepheus/Fiesta_Utils

Public Methods

Method 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

Method Description
OnChanged ( EventArgs e ) : void

Raises the Changed event.

OnLengthChanged ( EventArgs e ) : void

Raises the LengthChanged event.

Method Details

ApplyChanges() public method

Applies changes.
public ApplyChanges ( ) : void
return void

DeleteBytes() public method

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.
return void

DynamicByteProvider() public method

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

DynamicByteProvider() public method

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

HasChanges() public method

True, when changes are done.
public HasChanges ( ) : bool
return bool

InsertBytes() public method

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
return void

ReadByte() public method

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

SupportsDeleteBytes() public method

Returns true
public SupportsDeleteBytes ( ) : bool
return bool

SupportsInsertBytes() public method

Returns true
public SupportsInsertBytes ( ) : bool
return bool

SupportsWriteByte() public method

Returns true
public SupportsWriteByte ( ) : bool
return bool

WriteByte() public method

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
return void