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 ^

new($string)

Returns a new instance.

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 ^

Parrot::PackFile

Parrot::PackFile::Constant

Parrot::PackFile::FixupTable

build_tools/pbc2c.pl

HISTORY ^

Author: Gregor N. Purdy <gregor@focusresearch.com>


parrot