NAME

src/pmc/packfileannotationkeys.pmc - PackfileAnnotationKeys PMC

DESCRIPTION

This class implements a PackfileAnnotationKeys object, an array storing the table of keys and types contained within a PackfileAnnotations container.

See packfile.pmc for the toplevel Packfile interface, see packfilesegment.pmc for the list of common methods every packfile segment pmc must implement; see PDD13 for the design spec.

Methods

void init()
Initialize PackfileAnnotationKeys.
void mark()
Marks the object as live.
void destroy()
Destroys the PMC and frees all allocated memory.
STRING *get_string_keyed_int(INTVAL index)
Fetch the given entry's name key.
void set_string_keyed_int(INTVAL index, STRING *value)
Store the given entry's name key.
INTVAL get_integer_keyed_int(INTVAL index)
Fetch the given entry's annotation type.
void set_integer_keyed_int(INTVAL index, INTVAL value)
Store the given entry's annotation type.
void set_pointer(void *pointer)
Initialize from PackFile_Annotation pointer.
INTVAL elements()
Get the number of stored Keys.
void set_constant_table(PMC *table)
Set PackfileConstantTable associated with Keys.
PMC *get_constant_table()
Get PackfileConstantTable associated with PackfileAnnotationKeys. Solely for testing purpose only.
INTVAL get_name_constant(INTVAL index)
Get constant id used for name at given index.