Public Members

Construction/Destruction

CByteArray Constructs an empty array for bytes.  

Bounds

GetSize Gets number of elements in this array.  
GetUpperBound Returns the largest valid index.  
SetSize Sets the number of elements to be contained in this array.  

Operations

FreeExtra Frees all unused memory above the current upper bound.  
RemoveAll Removes all the elements from this array.  

Element Access

GetAt Returns the value at a given index.  
SetAt Sets the value for a given index; array not allowed to grow.  
ElementAt Returns a temporary reference to the byte within the array.  

Growing the Array

SetAtGrow Sets the value for a given index; grows the array if necessary.  
Add Adds an element to the end of the array.  

Insertion/Removal

InsertAt Inserts an element at a specified index.  
RemoveAt Removes an element at a specific index.  

Operators

operator [] Sets or gets the element at the specified index.