line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
############################################################################### |
3
|
|
|
|
|
|
|
## ## |
4
|
|
|
|
|
|
|
## Copyright (c) 1995 - 2013 by Steffen Beyer. ## |
5
|
|
|
|
|
|
|
## All rights reserved. ## |
6
|
|
|
|
|
|
|
## ## |
7
|
|
|
|
|
|
|
## This package is free software; you can redistribute it ## |
8
|
|
|
|
|
|
|
## and/or modify it under the same terms as Perl itself. ## |
9
|
|
|
|
|
|
|
## ## |
10
|
|
|
|
|
|
|
############################################################################### |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package Bit::Vector; |
13
|
|
|
|
|
|
|
|
14
|
23
|
|
|
23
|
|
17790
|
use strict; |
|
23
|
|
|
|
|
32
|
|
|
23
|
|
|
|
|
846
|
|
15
|
23
|
|
|
23
|
|
86
|
use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION @CONFIG); |
|
23
|
|
|
|
|
29
|
|
|
23
|
|
|
|
|
5366
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
require Exporter; |
18
|
|
|
|
|
|
|
require DynaLoader; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
@ISA = qw(Exporter DynaLoader); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
@EXPORT = qw(); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
@EXPORT_OK = qw(); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
$VERSION = '7.4'; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
bootstrap Bit::Vector $VERSION; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub STORABLE_freeze |
31
|
|
|
|
|
|
|
{ |
32
|
3657
|
|
|
3657
|
0
|
303601
|
my($self, $clone) = @_; |
33
|
3657
|
|
|
|
|
23864
|
return( Storable::nfreeze( [ $self->Size(), $self->Block_Read() ] ) ); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub STORABLE_thaw |
37
|
|
|
|
|
|
|
{ |
38
|
3657
|
|
|
3657
|
0
|
255792
|
my($self, $clone, $string) = @_; |
39
|
3657
|
|
|
|
|
3566
|
my($size,$buffer) = @{ Storable::thaw($string) }; |
|
3657
|
|
|
|
|
6074
|
|
40
|
3657
|
|
|
|
|
49156
|
$self->Unfake($size); # Undocumented feature, only for use by "Storable"! |
41
|
3657
|
|
|
|
|
22662
|
$self->Block_Store($buffer); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
#sub STORABLE_attach # Does not work properly in nested data structures (see test cases) |
45
|
|
|
|
|
|
|
#{ |
46
|
|
|
|
|
|
|
# my($class, $clone, $string) = @_; |
47
|
|
|
|
|
|
|
# my($size,$buffer) = @{ Storable::thaw($string) }; |
48
|
|
|
|
|
|
|
# my $self = Bit::Vector->new($size); |
49
|
|
|
|
|
|
|
# $self->Block_Store($buffer); |
50
|
|
|
|
|
|
|
# return $self; |
51
|
|
|
|
|
|
|
#} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |