src/pmc/packfileannotations.pmc - PackfileAnnotations PMC
This class implements a PackfileAnnotations object, a segment of the .pbc data file used for listing annotations. It is a container for PackfileAnnotation objects.
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.
To works properly PackfileAnnotations has to be added to PackfileDirectory with PackfileConstantTable. Otherwise PackfileAnnotationKey can't be created.
Marks the object as live.
Get the number of elements in the array.
PMC *get_pmc_keyed_int(INTVAL index)
Fetch an annotation PMC from the array.
void set_pmc_keyed_int(INTVAL index, PMC *annotation)
Add an annotation to the array at the given offset. An exception will be thrown unless all of the following criteria are met:
Handle setting of ownership.
Find PackfileConstantTable in PackfileDirectory and pass it to PackfileAnnotationKeys.
void set_pointer(void *ptr)
Initialize PackfileAnnotations from PackFile_Annotations*.
Create PackFile_Annotations* from self.
Get segment type.