HexBox
Search Results for

    Show / Hide Table of Contents

    Class DynamicByteProvider

    Byte provider for a small amount of data.

    Inheritance
    object
    DynamicByteProvider
    Implements
    IByteProvider
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Be.Windows.Forms
    Assembly: Be.Windows.Forms.HexBox.dll
    Syntax
    public class DynamicByteProvider : IByteProvider

    Constructors

    View Source

    DynamicByteProvider(byte[])

    Initializes a new instance of the DynamicByteProvider class.

    Declaration
    public DynamicByteProvider(byte[] data)
    Parameters
    Type Name Description
    byte[] data
    View Source

    DynamicByteProvider(List<byte>)

    Initializes a new instance of the DynamicByteProvider class.

    Declaration
    public DynamicByteProvider(List<byte> bytes)
    Parameters
    Type Name Description
    List<byte> bytes

    Properties

    View Source

    Bytes

    Gets the byte collection.

    Declaration
    public List<byte> Bytes { get; }
    Property Value
    Type Description
    List<byte>
    View Source

    Length

    Gets the length of the bytes in the byte collection.

    Declaration
    public long Length { get; }
    Property Value
    Type Description
    long

    Methods

    View Source

    ApplyChanges()

    Applies changes.

    Declaration
    public void ApplyChanges()
    View Source

    DeleteBytes(long, long)

    Deletes bytes from the byte collection.

    Declaration
    public void DeleteBytes(long index, long length)
    Parameters
    Type Name Description
    long index

    the start index of the bytes to delete.

    long length

    the length of bytes to delete.

    View Source

    HasChanges()

    True, when changes are done.

    Declaration
    public bool HasChanges()
    Returns
    Type Description
    bool
    View Source

    InsertBytes(long, byte[])

    Inserts byte into the byte collection.

    Declaration
    public void InsertBytes(long index, byte[] bs)
    Parameters
    Type Name Description
    long index

    the start index of the bytes in the byte collection

    byte[] bs

    the byte array to insert

    View Source

    ReadByte(long)

    Reads a byte from the byte collection.

    Declaration
    public byte ReadByte(long index)
    Parameters
    Type Name Description
    long index

    the index of the byte to read

    Returns
    Type Description
    byte

    the byte

    View Source

    SupportsDeleteBytes()

    Returns true

    Declaration
    public bool SupportsDeleteBytes()
    Returns
    Type Description
    bool
    View Source

    SupportsInsertBytes()

    Returns true

    Declaration
    public bool SupportsInsertBytes()
    Returns
    Type Description
    bool
    View Source

    SupportsWriteByte()

    Returns true

    Declaration
    public bool SupportsWriteByte()
    Returns
    Type Description
    bool
    View Source

    WriteByte(long, byte)

    Write a byte into the byte collection.

    Declaration
    public void WriteByte(long index, byte value)
    Parameters
    Type Name Description
    long index

    the index of the byte to write.

    byte value

    the byte

    Events

    View Source

    Changed

    Occurs, when the write buffer contains new changes.

    Declaration
    public event EventHandler Changed
    Event Type
    Type Description
    EventHandler
    View Source

    LengthChanged

    Occurs, when InsertBytes or DeleteBytes method is called.

    Declaration
    public event EventHandler LengthChanged
    Event Type
    Type Description
    EventHandler

    Implements

    IByteProvider
    • View Source
    In this article
    Back to top Generated by DocFX