line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::Mask; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
292
|
use strict; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
210
|
|
4
|
9
|
|
|
9
|
|
39
|
use warnings; |
|
9
|
|
|
|
|
14
|
|
|
9
|
|
|
|
|
180
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
44
|
use Module::Load (); |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
927
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my $_loaded_rng; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub create { |
11
|
53
|
|
|
53
|
0
|
263
|
return pack 'L', ( ( (rand 65536) << 16 ) | (rand 65536) ); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub apply { |
15
|
114
|
|
|
114
|
0
|
960
|
my ($payload_sr, $mask) = @_; |
16
|
|
|
|
|
|
|
|
17
|
114
|
|
|
|
|
261
|
$mask = $mask x (int(length($$payload_sr) / 4) + 1); |
18
|
|
|
|
|
|
|
|
19
|
114
|
|
|
|
|
174
|
substr($mask, length($$payload_sr)) = q<>; |
20
|
|
|
|
|
|
|
|
21
|
114
|
|
|
|
|
156
|
$$payload_sr .= q<>; |
22
|
114
|
|
|
|
|
149
|
$$payload_sr ^= $mask; |
23
|
|
|
|
|
|
|
|
24
|
114
|
|
|
|
|
182
|
return; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |