NAME
Parrot::PackFile::ConstTable - Packfile Constant Tables
SYNOPSIS
use Parrot::PackFile::ConstTable;
DESCRIPTION
Instances of Parrot::PackFile::ConstTable
are used to represent constant tables from Parrot packfiles.
Class Methods
Instance Methods
clear()
-
Empties the constant table.
unpack($string)
-
Unpacks the string.
packed_size()
-
Returns the packed size of the constant table.
pack()
-
Packs the constant table.
const_count()
-
Returns the number of constants in the table.
constant($index)
-
Returns the constant at
$index
. constants()
-
Returns a reference to the constants array.
add($const)
-
Adds the constant (an instance of
Parrot::PackFile::Constant
) to the table.
SEE ALSO
HISTORY
Author: Gregor N. Purdy <gregor@focusresearch.com>