src/pmc/packfilerawsegment.pmc - PackfileRawSegment PMC


This class implements a PackfileRawSegment object, a low level view of a segment that just splits it into an array of integers.

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.


Create empty PackfileRawSegment.
void mark()
Marks the object as live.
Initialize PackfileRawSegment from PackFile_Segment
void *get_pointer()
INTVAL elements()
Get the number of elements in the array.
INTVAL get_integer_keyed_int(INTVAL key)
INTVAL get_pmc_keyed_int(INTVAL key)
INTVAL get_pmc_keyed(PMC *key)
Fetch an integer's worth of data from the segment.
void set_integer_keyed_int(INTVAL key, INTVAL value)
Set an integer's worth of data in the segment.
void push_integer(INTVAL value)
Append opcode to segment
METHOD type()
Set or get segment type.