Simias::Sync::DownloadSegment Class Reference

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

List of all members.

Public Member Functions

 DownloadSegment (int block)
 Initialize a new Offset Segment.
 DownloadSegment (BinaryReader reader)
 Constructor to initialize the Download segment with reader.
void Serialize (BinaryWriter writer)
 Serialize the writer object.

Static Public Member Functions

static void AddToArray (ArrayList segArray, DownloadSegment 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 blocks.


Constructor & Destructor Documentation

Simias::Sync::DownloadSegment::DownloadSegment ( int  block  )  [inline]

Initialize a new Offset Segment.

Parameters:
block The block to copy.

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

Constructor to initialize the Download segment with reader.

Parameters:
reader Reader object to download


Member Function Documentation

static void Simias::Sync::DownloadSegment::AddToArray ( ArrayList  segArray,
DownloadSegment  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.

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

Serialize the writer object.

Parameters:
writer Writer object 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:34 2009 for simias by  doxygen 1.5.6