Instance Method

insertPointer(_:at:)

Inserts a pointer at a given index.

Declaration

func insertPointer(_ item: UnsafeMutableRawPointer?, at index: Int)

Parameters

item

The pointer to add.

index

The index of an element in the receiver. This value must be less than the count of the receiver.

Discussion

Elements at and above index, including NULL values, slide higher.

See Also

Managing the Collection

var count: Int

The number of elements in the receiver.

var allObjects: [Any]

All the objects in the receiver.

func pointer(at: Int) -> UnsafeMutableRawPointer?

Returns the pointer at a given index.

func addPointer(UnsafeMutableRawPointer?)

Adds a given pointer to the receiver.

func removePointer(at: Int)

Removes the pointer at a given index.

func compact()

Removes NULL values from the receiver.