Parrot::PackFile::ConstTable - Packfile Constant Tables
use Parrot::PackFile::ConstTable;
Instances of Parrot::PackFile::ConstTable are used to represent constant tables from Parrot packfiles.
Parrot::PackFile::ConstTable
new($string)
Returns a new instance.
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.
$index
constants()
Returns a reference to the constants array.
add($const)
Adds the constant (an instance of Parrot::PackFile::Constant) to the table.
Parrot::PackFile::Constant
Parrot::PackFile
Parrot::PackFile::FixupTable
Author: Gregor N. Purdy <gregor@focusresearch.com>
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.