| 1 | package PJVM::Class::Attribute::SourceFile; | ||
| 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 | sourcefile_index | ||
| 8 | 3 | ); | |
| 9 | |||
| 10 | 3 | ▶ | sub new_from_io { |
|
Subroutine
new_from_io: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 3 | my ($pkg, $io, $cp) = @_; | |
| 12 | |||
| 13 | 3 | my $buff; | |
| 14 | |||
| 15 | 3 | read $io, $buff, 2; | |
| 16 | 3 | my $sourcefile_index = unpack("n", $buff); | |
| 17 | |||
| 18 | 3 | my $self = $pkg->new( | |
| 19 | sourcefile_index => $sourcefile_index, | ||
| 20 | ); | ||
| 21 | |||
| 22 | 3 | return $self; | |
| 23 | } | ||
| 24 | |||
| 25 | 3 | 1; | |
| 26 | __END__ | ||