NAME
src/pmc/packfilerawsegment.pmc - PackfileRawSegment PMC
DESCRIPTION
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.
Methods
init
Create empty PackfileRawSegment.
void mark()
Marks the object as live.
set_pointer
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)
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.
METHOD type()
Set of get segment type.