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
|
|
31807
|
use strict; |
|
23
|
|
|
|
|
39
|
|
|
23
|
|
|
|
|
926
|
|
15
|
23
|
|
|
23
|
|
117
|
use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION @CONFIG); |
|
23
|
|
|
|
|
37
|
|
|
23
|
|
|
|
|
7150
|
|
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.3'; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
bootstrap Bit::Vector $VERSION; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub STORABLE_freeze |
31
|
|
|
|
|
|
|
{ |
32
|
3657
|
|
|
3657
|
0
|
478190
|
my($self, $clone) = @_; |
33
|
3657
|
|
|
|
|
33822
|
return( Storable::nfreeze( [ $self->Size(), $self->Block_Read() ] ) ); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub STORABLE_thaw |
37
|
|
|
|
|
|
|
{ |
38
|
3657
|
|
|
3657
|
0
|
346560
|
my($self, $clone, $string) = @_; |
39
|
3657
|
|
|
|
|
4251
|
my($size,$buffer) = @{ Storable::thaw($string) }; |
|
3657
|
|
|
|
|
10849
|
|
40
|
3657
|
|
|
|
|
67425
|
$self->Unfake($size); # Undocumented feature, only for use by "Storable"! |
41
|
3657
|
|
|
|
|
36192
|
$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__ |