다음을 통해 공유


CByteArray Members

Base Class Members

CObject Members

Construction

CByteArray

Constructs an empty array for bytes.

Bounds

GetCount

Gets the number of elements in this array.

GetSize

Gets the 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.

IsEmpty

Determines if the array is empty.

RemoveAll

Removes all the elements from this array.

Element Access

ElementAt

Returns a temporary reference to the byte within the array.

GetAt

Returns the value at a given index.

GetData

Allows access to elements in the array. Can be NULL.

SetAt

Sets the value for a given index; array not allowed to grow.

Growing the Array

Add

Adds an element to the end of the array; grows the array if necessary.

Append

Appends another array to the array; grows the array if necessary.

Copy

Copies another array to the array; grows the array if necessary.

SetAtGrow

Sets the value for a given index; grows the array if necessary.

Insertion/Removal

InsertAt

Inserts an element (or all the elements in another array) at a specified index.

RemoveAt

Removes an element at a specific index.

Operators

operator []

Sets or gets the element at the specified index.

See Also

Reference

CByteArray Class

Hierarchy Chart