Simias::Sync::BlockSegment Class Reference

Describes a file segment using a block from the remote file. Can be a Range of block. More...

Inheritance diagram for Simias::Sync::BlockSegment:

Inheritance graph
[legend]
Collaboration diagram for Simias::Sync::BlockSegment:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BlockSegment (long offset, int block)
 Initialize a new Offset Segment.
 BlockSegment (BinaryReader reader)
 Block the segment of file.
void Serialize (BinaryWriter writer)
 Serialize the details to write.

Static Public Member Functions

static void AddToArray (ArrayList segArray, BlockSegment seg, int blockSize)
 Adds the segment to the array. If this segment is contiguous with the last segment combine them.

Public Attributes

int StartBlock
 This is the start block for the unchanged segment of data.
int EndBlock
 The ending block in the range of contiguous blocks.


Detailed Description

Describes a file segment using a block from the remote file. Can be a Range of block.


Constructor & Destructor Documentation

Simias::Sync::BlockSegment::BlockSegment ( long  offset,
int  block 
) [inline]

Initialize a new Offset Segment.

Parameters:
offset The offset of where to copy.
block The block to copy.

Simias::Sync::BlockSegment::BlockSegment ( BinaryReader  reader  )  [inline]

Block the segment of file.

Parameters:
reader Reader details


Member Function Documentation

static void Simias::Sync::BlockSegment::AddToArray ( ArrayList  segArray,
BlockSegment  seg,
int  blockSize 
) [inline, static]

Adds the segment to the array. If this segment is contiguous with the last segment combine them.

Parameters:
segArray The array to add the segment to.
seg The new segment to add.
blockSize The size of the hashed data blocks.

void Simias::Sync::BlockSegment::Serialize ( BinaryWriter  writer  )  [inline]

Serialize the details to write.

Parameters:
writer Writer object details to serialize


Member Data Documentation

This is the start block for the unchanged segment of data.

The ending block in the range of contiguous blocks.


The documentation for this class was generated from the following file:

Generated on Wed Apr 8 14:56:30 2009 for simias by  doxygen 1.5.6