Instance Method

addPointer(_:)

Adds a given pointer to the receiver.

Declaration

func addPointer(_ pointer: UnsafeMutableRawPointer?)

Parameters

pointer

The pointer to add. This value may be NULL.

Discussion

pointer is added at index count.

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 removePointer(at: Int)

Removes the pointer at a given index.

func compact()

Removes NULL values from the receiver.