File Coverage

blib/lib/PDF/Make/Writer.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package PDF::Make::Writer;
2              
3 2     2   85128 use strict;
  2         4  
  2         65  
4 2     2   8 use warnings;
  2         3  
  2         164  
5              
6             our $VERSION = '0.03';
7              
8             # Load the XS code from PDF::Make
9 2     2   480 use PDF::Make ();
  2         3  
  2         60  
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             1;
20              
21             __END__