sub SIG_FREE () { 'F' }
sub SIG_SIZE () { 1 }
-use DBM::Deep::Iterator::BucketList ();
-use DBM::Deep::Iterator::Index ();
+use DBM::Deep::Iterator ();
use DBM::Deep::Engine::Sector::Data ();
use DBM::Deep::Engine::Sector::BucketList ();
use DBM::Deep::Engine::Sector::Index ();
use strict;
use warnings FATAL => 'all';
+my $STALE_SIZE = 2;
+
+# Please refer to the pack() documentation for further information
+my %StP = (
+ 1 => 'C', # Unsigned char value (no order needed as it's just one byte)
+ 2 => 'n', # Unsigned short in "network" (big-endian) order
+ 4 => 'N', # Unsigned long in "network" (big-endian) order
+ 8 => 'Q', # Usigned quad (no order specified, presumably machine-dependent)
+);
+
sub new {
my $self = bless $_[1], $_[0];
Scalar::Util::weaken( $self->{engine} );
use base qw( DBM::Deep::Engine::Sector );
+my $STALE_SIZE = 2;
+
+# Please refer to the pack() documentation for further information
+my %StP = (
+ 1 => 'C', # Unsigned char value (no order needed as it's just one byte)
+ 2 => 'n', # Unsigned short in "network" (big-endian) order
+ 4 => 'N', # Unsigned long in "network" (big-endian) order
+ 8 => 'Q', # Usigned quad (no order specified, presumably machine-dependent)
+);
+
sub _init {
my $self = shift;
use base qw( DBM::Deep::Engine::Sector );
+my $STALE_SIZE = 2;
+
+# Please refer to the pack() documentation for further information
+my %StP = (
+ 1 => 'C', # Unsigned char value (no order needed as it's just one byte)
+ 2 => 'n', # Unsigned short in "network" (big-endian) order
+ 4 => 'N', # Unsigned long in "network" (big-endian) order
+ 8 => 'Q', # Usigned quad (no order specified, presumably machine-dependent)
+);
+
sub _init {
my $self = shift;
use base qw( DBM::Deep::Engine::Sector::Data );
+my $STALE_SIZE = 2;
+
+# Please refer to the pack() documentation for further information
+my %StP = (
+ 1 => 'C', # Unsigned char value (no order needed as it's just one byte)
+ 2 => 'n', # Unsigned short in "network" (big-endian) order
+ 4 => 'N', # Unsigned long in "network" (big-endian) order
+ 8 => 'Q', # Usigned quad (no order specified, presumably machine-dependent)
+);
+
sub type { $_[0]{engine}->SIG_NULL }
sub data_length { 0 }
sub data { return }
use base qw( DBM::Deep::Engine::Sector::Data );
+my $STALE_SIZE = 2;
+
+# Please refer to the pack() documentation for further information
+my %StP = (
+ 1 => 'C', # Unsigned char value (no order needed as it's just one byte)
+ 2 => 'n', # Unsigned short in "network" (big-endian) order
+ 4 => 'N', # Unsigned long in "network" (big-endian) order
+ 8 => 'Q', # Usigned quad (no order specified, presumably machine-dependent)
+);
+
sub _init {
my $self = shift;
use base qw( DBM::Deep::Engine::Sector::Data );
+my $STALE_SIZE = 2;
+
+# Please refer to the pack() documentation for further information
+my %StP = (
+ 1 => 'C', # Unsigned char value (no order needed as it's just one byte)
+ 2 => 'n', # Unsigned short in "network" (big-endian) order
+ 4 => 'N', # Unsigned long in "network" (big-endian) order
+ 8 => 'Q', # Usigned quad (no order specified, presumably machine-dependent)
+);
+
sub free {
my $self = shift;
use strict;
use warnings FATAL => 'all';
+use DBM::Deep::Iterator::BucketList ();
+use DBM::Deep::Iterator::Index ();
+
=head1 NAME
DBM::Deep::Iterator
cmp_ok( $medium, '>', $small, "medium is greater than small" );
}
+eval "pack('Q', 0);";
+my $haveQ = !$@;
+
SKIP: {
- eval "pack('Q', 0);";
skip "Largefile support is not compiled into $^X", 3
- if $@;
+ unless $haveQ;
my ($fh, $filename) = new_fh();
{
}
cmp_ok( $medium, '<', $large, "medium is smaller than large" );
}
+
+#SKIP: {
+# skip "Largefile support is compiled into $^X", 3
+# if $haveQ;
+#
+# my ($fh, $filename) = new_fh();
+# {
+# my $db = DBM::Deep->new(
+# file => $filename,
+# autoflush => 1,
+# pack_size => 'large',
+# );
+# }
+#
+#}