line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Statistics::R::IO::RDS; |
2
|
|
|
|
|
|
|
# ABSTRACT: Supply object methods for RDS files |
3
|
|
|
|
|
|
|
$Statistics::R::IO::RDS::VERSION = '1.0002'; |
4
|
1
|
|
|
1
|
|
50097
|
use 5.010; |
|
1
|
|
|
|
|
3
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
277
|
use Class::Tiny::Antlers; |
|
1
|
|
|
|
|
3119
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
extends 'Statistics::R::IO::Base'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
429
|
use Statistics::R::IO::REXPFactory; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
11
|
1
|
|
|
1
|
|
6
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
5
|
use namespace::clean; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub read { |
17
|
477
|
|
|
477
|
1
|
5627
|
my $self = shift; |
18
|
|
|
|
|
|
|
|
19
|
477
|
|
|
|
|
1199
|
my $data = $self->_read_and_uncompress; |
20
|
|
|
|
|
|
|
|
21
|
424
|
|
|
|
|
719
|
my ($value, $state) = @{Statistics::R::IO::REXPFactory::unserialize($data)}; |
|
424
|
|
|
|
|
1356
|
|
22
|
424
|
50
|
|
|
|
1126
|
croak 'Could not parse RDS file' unless $state; |
23
|
424
|
50
|
|
|
|
1035
|
croak 'Unread data remaining in the RDS file' unless $state->eof; |
24
|
424
|
|
|
|
|
2924
|
$value |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |