| 1 | package PDF::Make::Writer; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.15'; | |
| 7 | |||
| 8 | # Load the XS code from PDF::Make | ||
| 9 | 2 | ▶ | use PDF::Make (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | # XS bindings will provide: | ||
| 12 | # new() - create a new writer with internal buffer | ||
| 13 | # write($obj) - serialize an object, returns $self for chaining | ||
| 14 | # to_bytes() - return accumulated bytes and reset buffer | ||
| 15 | # buf() - accessor for internal buffer pointer (for advanced use) | ||
| 16 | # len() - accessor for current buffer length | ||
| 17 | # DESTROY() - free internal buffer | ||
| 18 | |||
| 19 | 2 | 1; | |
| 20 | |||
| 21 | __END__ | ||