SYNOPSIS ^

  use Parrot::PackFile::Constant;

DESCRIPTION ^

Instances of Parrot::PackFile::Constant are used to represent constants in Parrot packfiles.

Functions ^

Note that these functions are not exported.

type_name($query)

Return the type name for $query.

type_code($query)

Return the type code for $query.

Class Methods ^

new()

Returns a new instance of type PFC_NONE.

new_integer()

Returns a new integer constant instance.

new_number()

Returns a new floating-point number constant instance.

new_string()

Returns a new Parrot string constant instance.

Instance Methods ^

clear()

Sets the constant type to PFC_NONE.

type()

Returns the type of the constant.

value()

Returns the value of the constant.

unpack($string)

Unpack from the string and return the number of characters that should be removed from the packed string.

packed_size()

Returns the packed size of the constant.

pack()

Packs the constant.

SEE ALSO ^

Parrot::PackFile

Parrot::PackFile::ConstTable

Parrot::PackFile::FixupTable

build_tools/pbc2c.pl

HISTORY ^

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


parrot