line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
15
|
use strict; |
|
3
|
|
|
|
|
37
|
|
|
3
|
|
|
|
|
89
|
|
2
|
3
|
|
|
3
|
|
13
|
use warnings; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
983
|
|
3
|
|
|
|
|
|
|
package AnyEvent::OWNet::Response; |
4
|
|
|
|
|
|
|
$AnyEvent::OWNet::Response::VERSION = '1.163170'; |
5
|
|
|
|
|
|
|
# ABSTRACT: Module for responses from 1-wire File System server |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
18
|
|
|
18
|
1
|
54
|
my ($pkg, %p) = @_; |
10
|
18
|
|
|
|
|
120
|
bless { %p }, $pkg; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub is_success { |
15
|
4
|
|
|
4
|
1
|
15
|
shift->{ret} == 0 |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub return_code { |
20
|
|
|
|
|
|
|
shift->{ret} |
21
|
15
|
|
|
15
|
1
|
4674
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub version { |
25
|
|
|
|
|
|
|
shift->{version} |
26
|
15
|
|
|
15
|
1
|
4906
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub flags { |
30
|
|
|
|
|
|
|
shift->{sg} |
31
|
15
|
|
|
15
|
1
|
4500
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub payload_length { |
35
|
|
|
|
|
|
|
shift->{payload} |
36
|
15
|
|
|
15
|
1
|
4377
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub size { |
40
|
|
|
|
|
|
|
shift->{size} |
41
|
15
|
|
|
15
|
1
|
4322
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub offset { |
45
|
|
|
|
|
|
|
shift->{offset} |
46
|
15
|
|
|
15
|
1
|
4375
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub data_list { |
50
|
8
|
|
|
8
|
1
|
1252
|
my $self = shift; |
51
|
8
|
100
|
|
|
|
34
|
unless (ref $self->{data}) { |
52
|
6
|
|
|
|
|
37
|
$self->{data} = [ split /,/, substr $self->{data}, 0, -1 ]; |
53
|
|
|
|
|
|
|
} |
54
|
8
|
|
|
|
|
11
|
@{$self->{data}} |
|
8
|
|
|
|
|
39
|
|
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub data { |
59
|
|
|
|
|
|
|
shift->{data} |
60
|
11
|
|
|
11
|
1
|
3043
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
1; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__END__ |