line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::Mask; |
2
|
|
|
|
|
|
|
|
3
|
23
|
|
|
23
|
|
605
|
use strict; |
|
23
|
|
|
|
|
53
|
|
|
23
|
|
|
|
|
668
|
|
4
|
23
|
|
|
23
|
|
116
|
use warnings; |
|
23
|
|
|
|
|
43
|
|
|
23
|
|
|
|
|
2908
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
my $_loaded_rng; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub create { |
9
|
54
|
|
|
54
|
0
|
397
|
return pack 'L', ( ( (rand 65536) << 16 ) | (rand 65536) ); |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub apply { |
13
|
118
|
|
|
118
|
0
|
2340
|
my ($payload_sr, $mask) = @_; |
14
|
|
|
|
|
|
|
|
15
|
118
|
|
|
|
|
322
|
$mask = $mask x (int(length($$payload_sr) / 4) + 1); |
16
|
|
|
|
|
|
|
|
17
|
118
|
|
|
|
|
223
|
substr($mask, length($$payload_sr)) = q<>; |
18
|
|
|
|
|
|
|
|
19
|
118
|
|
|
|
|
183
|
$$payload_sr .= q<>; |
20
|
118
|
|
|
|
|
200
|
$$payload_sr ^= $mask; |
21
|
|
|
|
|
|
|
|
22
|
118
|
|
|
|
|
244
|
return; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |