line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Net::OBEX::Packet::Headers::Byte4; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
1160
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
97
|
|
5
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
130
|
|
6
|
3
|
|
|
3
|
|
16
|
use Carp; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
169
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
25
|
use base 'Net::OBEX::Packet::Headers::Base'; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
695
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.001001'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my %Header_HI_For = ( |
13
|
|
|
|
|
|
|
count => "\xC0", |
14
|
|
|
|
|
|
|
length => "\xC3", |
15
|
|
|
|
|
|
|
timeb => "\xC4", |
16
|
|
|
|
|
|
|
connection_id => "\xCB", |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new { |
20
|
4
|
|
|
4
|
1
|
6
|
my ( $class, $name, $value ) = @_; |
21
|
|
|
|
|
|
|
|
22
|
4
|
50
|
|
|
|
10
|
croak "Missing header name or HI identifier" |
23
|
|
|
|
|
|
|
unless defined $name; |
24
|
|
|
|
|
|
|
|
25
|
4
|
50
|
|
|
|
12
|
$name = $Header_HI_For{ lc $name } |
26
|
|
|
|
|
|
|
if exists $Header_HI_For{ lc $name }; |
27
|
|
|
|
|
|
|
|
28
|
4
|
50
|
|
|
|
6
|
$value = '' |
29
|
|
|
|
|
|
|
unless defined $value; |
30
|
|
|
|
|
|
|
|
31
|
4
|
|
|
|
|
27
|
return bless { |
32
|
|
|
|
|
|
|
value => $value, |
33
|
|
|
|
|
|
|
hi => $name, |
34
|
|
|
|
|
|
|
}, $class; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |