Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

FileBucket::Record Class Reference

List of all members.

Public Member Functions

void[] read (FileBucket bucket)
void write (FileBucket bucket, void[] data, BlockSize block)
void createBucket (FileBucket bucket, int bytes, BlockSize block)

Static Private Member Functions

static void eof (FileBucket bucket)

Private Attributes

ulong offset
int length
int capacity = -1

Detailed Description

Each Record takes up a number of 'pages' within the file. The size of these pages is determined by the BlockSize provided during FileBucket construction. Additional space at the end of each block is potentially wasted, but enables content to grow in size without creating a myriad of holes.

Definition at line 278 of file FileBucket.d.


Member Function Documentation

static void eof FileBucket  bucket  )  [inline, static, private]
 

Definition at line 288 of file FileBucket.d.

References FileBucket::path, and FilePath::toString().

Referenced by read(), and write().

void [] read FileBucket  bucket  )  [inline]
 

This should be protected from thread-contention at a higher level.

Definition at line 300 of file FileBucket.d.

References eof(), FileBucket::file, length, offset, and ISeekable::seek().

Referenced by FileBucket::get().

void write FileBucket  bucket,
void[]  data,
BlockSize  block
[inline]
 

This should be protected from thread-contention at a higher level.

Definition at line 318 of file FileBucket.d.

References capacity, createBucket(), eof(), FileBucket::file, FileConduit::length(), length, offset, and ISeekable::seek().

Referenced by FileBucket::put().

void createBucket FileBucket  bucket,
int  bytes,
BlockSize  block
[inline]
 

Definition at line 338 of file FileBucket.d.

References FileBucket::BlockSize::capacity, capacity, FileBucket::file, FileBucket::fileSize, offset, ISeekable::seek(), and FileBucket::waterLine.

Referenced by write().


Member Data Documentation

ulong offset [private]
 

Definition at line 280 of file FileBucket.d.

Referenced by createBucket(), read(), and write().

int length [private]
 

Definition at line 281 of file FileBucket.d.

Referenced by read(), and write().

int capacity = -1 [private]
 

Definition at line 282 of file FileBucket.d.

Referenced by createBucket(), and write().


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:38 2005 for Mango by  doxygen 1.4.0