FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kCompressedPhase_SetItemCount ( kCompressedPhase  data,
kCompressedPhaseStream  stream,
kSize  itemCount 
)

Sets the total number of compressed items in the stream.

This method must be called when external packets are attached, to inform kCompressedPhase about how many items are included in the stream. It is only necessary to call this method once for each stream. This method is typically called after attaching the last packet in the stream.

This method should not be used when writing individual items to the stream (e.g., kCompressedPhase_BeginWrite, kCompressedPhase_WriteDelta.

Parameters
dataCompressed phase object.
streamStream to which packet should be attached.
itemCountTotal number of compressed items in the stream.
Returns
Operation status.