| 1 | |||||||||||
| 2 | package Compress::Raw::Bzip2; | ||||||||||
| 3 | |||||||||||
| 4 | 3 | ▶ | use strict ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use warnings ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 3 | require 5.008 ; | |||||||||
| 8 | 3 | require Exporter; | |||||||||
| 9 | 3 | ▶ | use Carp ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 3 | ▶ | use bytes ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 3 | our ($VERSION, $XS_VERSION, @ISA, @EXPORT, $AUTOLOAD); | |||||||||
| 13 | |||||||||||
| 14 | 3 | $VERSION = '2.225'; | |||||||||
| 15 | 3 | $XS_VERSION = $VERSION; | |||||||||
| 16 | 3 | $VERSION = eval $VERSION; | |||||||||
| 17 | |||||||||||
| 18 | 3 | @ISA = qw(Exporter); | |||||||||
| 19 | # Items to export into callers namespace by default. Note: do not export | ||||||||||
| 20 | # names by default without a very good reason. Use EXPORT_OK instead. | ||||||||||
| 21 | # Do not simply export all your public functions/methods/constants. | ||||||||||
| 22 | 3 | @EXPORT = qw( | |||||||||
| 23 | BZ_RUN | ||||||||||
| 24 | BZ_FLUSH | ||||||||||
| 25 | BZ_FINISH | ||||||||||
| 26 | |||||||||||
| 27 | BZ_OK | ||||||||||
| 28 | BZ_RUN_OK | ||||||||||
| 29 | BZ_FLUSH_OK | ||||||||||
| 30 | BZ_FINISH_OK | ||||||||||
| 31 | BZ_STREAM_END | ||||||||||
| 32 | BZ_SEQUENCE_ERROR | ||||||||||
| 33 | BZ_PARAM_ERROR | ||||||||||
| 34 | BZ_MEM_ERROR | ||||||||||
| 35 | BZ_DATA_ERROR | ||||||||||
| 36 | BZ_DATA_ERROR_MAGIC | ||||||||||
| 37 | BZ_IO_ERROR | ||||||||||
| 38 | BZ_UNEXPECTED_EOF | ||||||||||
| 39 | BZ_OUTBUFF_FULL | ||||||||||
| 40 | BZ_CONFIG_ERROR | ||||||||||
| 41 | |||||||||||
| 42 | ); | ||||||||||
| 43 | |||||||||||
| 44 | 9 | ▶ | sub AUTOLOAD { | ||||||||
|
Subroutine
AUTOLOAD: called CC=2 SCAR=6.9
| |||||||||||
| 45 | 9 | my($constname); | |||||||||
| 46 | 9 | ($constname = $AUTOLOAD) =~ s/.*:://; | |||||||||
| 47 | 9 | my ($error, $val) = constant($constname); | |||||||||
| 48 | 9 | ▶ | Carp::croak $error if $error; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 49 | 3 | ▶ | no strict 'refs'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 50 | 9 | ▶ | *{$AUTOLOAD} = sub { $val }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 51 | 9 | goto &{$AUTOLOAD}; | |||||||||
| 52 | |||||||||||
| 53 | } | ||||||||||
| 54 | |||||||||||
| 55 | 3 | ▶ | use constant FLAG_APPEND => 1 ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 56 | 3 | ▶ | use constant FLAG_CRC => 2 ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 57 | 3 | ▶ | use constant FLAG_ADLER => 4 ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 58 | 3 | ▶ | use constant FLAG_CONSUME_INPUT => 8 ; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 59 | |||||||||||
| 60 | eval { | ||||||||||
| 61 | 3 | require XSLoader; | |||||||||
| 62 | 3 | XSLoader::load('Compress::Raw::Bzip2', $XS_VERSION); | |||||||||
| 63 | 3 | 1; | |||||||||
| 64 | } | ||||||||||
| 65 | 3 | ▶ | or do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 66 | 0 | require DynaLoader; | |||||||||
| 67 | 0 | local @ISA = qw(DynaLoader); | |||||||||
| 68 | 0 | bootstrap Compress::Raw::Bzip2 $XS_VERSION ; | |||||||||
| 69 | }; | ||||||||||
| 70 | |||||||||||
| 71 | #sub Compress::Raw::Bzip2::new | ||||||||||
| 72 | #{ | ||||||||||
| 73 | # my $class = shift ; | ||||||||||
| 74 | # my ($ptr, $status) = _new(@_); | ||||||||||
| 75 | # return wantarray ? (undef, $status) : undef | ||||||||||
| 76 | # unless $ptr ; | ||||||||||
| 77 | # my $obj = bless [$ptr], $class ; | ||||||||||
| 78 | # return wantarray ? ($obj, $status) : $obj; | ||||||||||
| 79 | #} | ||||||||||
| 80 | # | ||||||||||
| 81 | #package Compress::Raw::Bunzip2 ; | ||||||||||
| 82 | # | ||||||||||
| 83 | #sub Compress::Raw::Bunzip2::new | ||||||||||
| 84 | #{ | ||||||||||
| 85 | # my $class = shift ; | ||||||||||
| 86 | # my ($ptr, $status) = _new(@_); | ||||||||||
| 87 | # return wantarray ? (undef, $status) : undef | ||||||||||
| 88 | # unless $ptr ; | ||||||||||
| 89 | # my $obj = bless [$ptr], $class ; | ||||||||||
| 90 | # return wantarray ? ($obj, $status) : $obj; | ||||||||||
| 91 | #} | ||||||||||
| 92 | |||||||||||
| 93 | sub Compress::Raw::Bzip2::STORABLE_freeze | ||||||||||
| 94 | 0 | ▶ | { | ||||||||
|
Subroutine
STORABLE_freeze: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 95 | 0 | my $type = ref shift; | |||||||||
| 96 | 0 | croak "Cannot freeze $type object\n"; | |||||||||
| 97 | } | ||||||||||
| 98 | |||||||||||
| 99 | sub Compress::Raw::Bzip2::STORABLE_thaw | ||||||||||
| 100 | 0 | ▶ | { | ||||||||
|
Subroutine
STORABLE_thaw: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 101 | 0 | my $type = ref shift; | |||||||||
| 102 | 0 | croak "Cannot thaw $type object\n"; | |||||||||
| 103 | } | ||||||||||
| 104 | |||||||||||
| 105 | sub Compress::Raw::Bunzip2::STORABLE_freeze | ||||||||||
| 106 | 0 | ▶ | { | ||||||||
|
Subroutine
STORABLE_freeze: not called CC=1 SCAR=6.9
| |||||||||||
| 107 | 0 | my $type = ref shift; | |||||||||
| 108 | 0 | croak "Cannot freeze $type object\n"; | |||||||||
| 109 | } | ||||||||||
| 110 | |||||||||||
| 111 | sub Compress::Raw::Bunzip2::STORABLE_thaw | ||||||||||
| 112 | 0 | ▶ | { | ||||||||
|
Subroutine
STORABLE_thaw: not called CC=1 SCAR=6.9
| |||||||||||
| 113 | 0 | my $type = ref shift; | |||||||||
| 114 | 0 | croak "Cannot thaw $type object\n"; | |||||||||
| 115 | } | ||||||||||
| 116 | |||||||||||
| 117 | |||||||||||
| 118 | package Compress::Raw::Bzip2; | ||||||||||
| 119 | |||||||||||
| 120 | 3 | 1; | |||||||||
| 121 | |||||||||||
| 122 | __END__ | ||||||||||