Refactored Sector:: out from under Engine:: and into its own area
[dbsrgits/DBM-Deep.git] / lib / DBM / Deep / Sector / File / Data.pm
CommitLineData
2c70efe1 1package DBM::Deep::Sector::File::Data;
f0276afb 2
3use 5.006_000;
4
5use strict;
6use warnings FATAL => 'all';
7
2c70efe1 8use base qw( DBM::Deep::Sector::File );
f0276afb 9
10# This is in bytes
11sub size { $_[0]{engine}->data_sector_size }
12sub free_meth { return '_add_free_data_sector' }
13
14sub clone {
15 my $self = shift;
16 return ref($self)->new({
17 engine => $self->engine,
18 type => $self->type,
19 data => $self->data,
20 });
21}
22
231;
24__END__