src/pmc/packfilesegment.pmc - PackfileSegment PMC


This class implements a PackfileSegment class, an abstract class defining a couple of methods which all Packfile segments will implement. The stub methods found here explode when called.

See packfile.pmc for the toplevel Packfile interface; see PDD13 for the design spec.


void init()
Initialize PackfileSegment.
void mark()
Marks the object as live.
void set_pointer(void *ptr)
Initialize PMC internals.
void *get_pointer()
Initialize PMC internals.
STRING *pack()
Serialize the segment.
void unpack(STRING *data)
Unpack a serialized segment string.
void set_directory(PMC *directory)
Set owning directory.
void get_directory(PMC *directory)
Get owning directory.