| 1 | package PJVM::Class::Attribute::Exceptions; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use Object::Tiny qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | exceptions_index_table | ||
| 8 | 3 | ); | |
| 9 | |||
| 10 | 0 | ▶ | sub new_from_io { |
|
Subroutine
new_from_io: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 11 | 0 | my ($pkg, $io, $cp) = @_; | |
| 12 | |||
| 13 | 0 | my $buff; | |
| 14 | |||
| 15 | # Number of exceptions | ||
| 16 | 0 | read $io, $buff, 2; | |
| 17 | 0 | my $number_of_exceptions = unpack("n", $buff); | |
| 18 | |||
| 19 | 0 | read $io, $buff, $number_of_exceptions * 2; | |
| 20 | 0 | my @exceptions_index_table = unpack("n*", $buff); | |
| 21 | |||
| 22 | 0 | my $self = $pkg->new( | |
| 23 | exceptions_index_table => \@exceptions_index_table, | ||
| 24 | ); | ||
| 25 | |||
| 26 | 0 | return $self; | |
| 27 | } | ||
| 28 | |||
| 29 | 3 | 1; | |
| 30 | __END__ | ||