NAME

src/pmc/packfilesegment.pmc - PackfileSegment PMC

DESCRIPTION

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.

Methods

void init()
Initialize PackfileSegment.
void mark()
Marks the object as live.
void destroy()
Destroys the PMC and frees all allocated memory.
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.