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.

Methods ^

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.