NAME ^

classes/resizablestringarray.pmc - resizable size array for strings only

DESCRIPTION ^

This class, ResizableStringArray, implements an array of resizable size, which stored STRING* TODO: it uses PerlString's internally to perform conversion, but it should use String PMCs

Functions ^

STRING *get_string_keyed_int(INTVAL key)

Returns the Parrot string value of the element at index key.

void set_string_keyed_int(INTVAL key, STRING *value)

Sets the Parrot string value of the element at index key to value.

void set_integer_native(INTVAL size)

Resizes the array to size elements.

PMC *clone()

Creates and returns a copy of the array.

void mark()

Marks the array as live.

SEE ALSO ^

docs/pdds/pdd03_calling_conventions.pod.

HISTORY ^

Initial version 2004.06.11 by Matt Fowles Changed allocator to double size - MF 2004.06.15


parrot