HexBox
Search Results for

    Show / Hide Table of Contents

    Class ByteCollection

    Represents a collection of bytes.

    Inheritance
    object
    CollectionBase
    ByteCollection
    Implements
    IList
    ICollection
    IEnumerable
    Inherited Members
    CollectionBase.Clear()
    CollectionBase.RemoveAt(int)
    CollectionBase.GetEnumerator()
    CollectionBase.OnSet(int, object, object)
    CollectionBase.OnInsert(int, object)
    CollectionBase.OnClear()
    CollectionBase.OnRemove(int, object)
    CollectionBase.OnValidate(object)
    CollectionBase.OnSetComplete(int, object, object)
    CollectionBase.OnInsertComplete(int, object)
    CollectionBase.OnClearComplete()
    CollectionBase.OnRemoveComplete(int, object)
    CollectionBase.InnerList
    CollectionBase.List
    CollectionBase.Capacity
    CollectionBase.Count
    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 ByteCollection : CollectionBase, IList, ICollection, IEnumerable

    Constructors

    View Source

    ByteCollection()

    Initializes a new instance of ByteCollection class.

    Declaration
    public ByteCollection()
    View Source

    ByteCollection(byte[])

    Initializes a new instance of ByteCollection class.

    Declaration
    public ByteCollection(byte[] bs)
    Parameters
    Type Name Description
    byte[] bs

    an array of bytes to add to collection

    Properties

    View Source

    this[int]

    Gets or sets the value of a byte

    Declaration
    public byte this[int index] { get; set; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    byte

    Methods

    View Source

    Add(byte)

    Adds a byte into the collection.

    Declaration
    public void Add(byte b)
    Parameters
    Type Name Description
    byte b

    the byte to add

    View Source

    AddRange(byte[])

    Adds a range of bytes to the collection.

    Declaration
    public void AddRange(byte[] bs)
    Parameters
    Type Name Description
    byte[] bs

    the bytes to add

    View Source

    Contains(byte)

    Returns true, if the byte exists in the collection.

    Declaration
    public bool Contains(byte b)
    Parameters
    Type Name Description
    byte b
    Returns
    Type Description
    bool
    View Source

    CopyTo(byte[], int)

    Copies the content of the collection into the given array.

    Declaration
    public void CopyTo(byte[] bs, int index)
    Parameters
    Type Name Description
    byte[] bs
    int index
    View Source

    GetBytes()

    Gets all bytes in the array

    Declaration
    public byte[] GetBytes()
    Returns
    Type Description
    byte[]

    an array of bytes.

    View Source

    IndexOf(byte)

    Returns the index of the given byte.

    Declaration
    public int IndexOf(byte b)
    Parameters
    Type Name Description
    byte b
    Returns
    Type Description
    int
    View Source

    Insert(int, byte)

    Inserts a byte to the collection.

    Declaration
    public void Insert(int index, byte b)
    Parameters
    Type Name Description
    int index

    the index

    byte b

    a byte to insert

    View Source

    InsertRange(int, byte[])

    Inserts a range of bytes to the collection.

    Declaration
    public void InsertRange(int index, byte[] bs)
    Parameters
    Type Name Description
    int index

    the index of start byte

    byte[] bs

    an array of bytes to insert

    View Source

    Remove(byte)

    Removes a byte from the collection.

    Declaration
    public void Remove(byte b)
    Parameters
    Type Name Description
    byte b

    the byte to remove

    View Source

    RemoveRange(int, int)

    Removes a range of bytes from the collection.

    Declaration
    public void RemoveRange(int index, int count)
    Parameters
    Type Name Description
    int index

    the index of the start byte

    int count

    the count of the bytes to remove

    View Source

    ToArray()

    Copies the content of the collection into an array.

    Declaration
    public byte[] ToArray()
    Returns
    Type Description
    byte[]

    the array containing all bytes.

    Implements

    IList
    ICollection
    IEnumerable
    • View Source
    In this article
    Back to top Generated by DocFX