| 1 | package PDF::Make::Arena; | ||
| 2 | |||
| 3 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 5 | our $VERSION = '0.15'; | |
| 7 | |||
| 8 | # Load the XS code from PDF::Make | ||
| 9 | 5 | ▶ | use PDF::Make (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | # XS bindings provide: | ||
| 12 | # new() - create a new arena | ||
| 13 | # reset() - reset arena for reuse | ||
| 14 | # DESTROY() - free arena | ||
| 15 | # | ||
| 16 | # Object creation methods (return PDF::Make::Obj): | ||
| 17 | # null() - create null object | ||
| 18 | # bool($val) - create boolean | ||
| 19 | # int($val) - create integer | ||
| 20 | # real($val) - create real number | ||
| 21 | # name($str) - create name | ||
| 22 | # str($str) - create literal string | ||
| 23 | # hexstr($str) - create hex string | ||
| 24 | # obj_ref($num, $gen) - create indirect reference | ||
| 25 | # array() - create empty array | ||
| 26 | # dict() - create empty dictionary | ||
| 27 | # stream() - create empty stream | ||
| 28 | |||
| 29 | 5 | 1; | |
| 30 | |||
| 31 | __END__ | ||