NAME

src/pmc/packfileannotation.pmc - PackfileAnnotation PMC

DESCRIPTION

This class implements a PackfileAnnotation object. It is an element in the PackfileAnnotations segment of the .pbc file. See PDD13 for a design spec.

Methods

init
Create empty PackfileAnnotation.
void destroy()
Destroys the PMC and frees all allocated memory.
INTVAL get_offset()
Fetch the offset into the bytecode of the instruction that is being annotated.
void set_offset(INTVAL offset)
Set the offset into the bytecode of the instruction that is being annotated.
INTVAL get_key_id()
Fetch the ID of the key of the annotation.
void set_key_id(INTVAL key_id)
Set the ID of the key of the annotation.
INTVAL get_integer()
Fetch the value of the annotation.
void set_integer(INTVAL value)
Set the value of the annotation.