utils/examples/complextype_in_sequence/ComplextypeInSequencePlugin.cxx
/* Returns the size of the sample in its serialized form (in bytes).
 * It can also be an estimation in excess of the real buffer needed 
 * during a call to the serialize() function.
 * The value reported does not have to include the space for the
 * encapsulation flags.
 */
Returns the size of the sample in its serialized form (in bytes).
It can also be an estimation in excess of the real buffer needed
during a call to the serialize() function.
The value reported does not have to include the space for the
encapsulation flags.
Returns the size of the sample in its serialized form ( in bytes ) . It can also be an estimation in excess of the real buffer needed during a call to the serialize () function . The value reported does not have to include the space for the encapsulation flags .
unsigned int
CompletypeInSequencePlugin_get_serialized_sample_size(
    PRESTypePluginEndpointData endpoint_data,
    RTIBool include_encapsulation,
    RTIEncapsulationId encapsulation_id,
    unsigned int current_alignment,
    const CompletypeInSequence * sample) 
{
    unsigned int initial_alignment = current_alignment;
    unsigned int encapsulation_size = current_alignment;
    if (endpoint_data) {} 
    if (sample) {} 
    if (include_encapsulation) {
        if (!RTICdrEncapsulation_validEncapsulationId(encapsulation_id)) {
            return 1;
        }
        RTICdrStream_getEncapsulationSize(encapsulation_size);
        encapsulation_size -= current_alignment;
        current_alignment = 0;
        initial_alignment = 0;
    }
    current_alignment += Estructura_seqPlugin_get_serialized_sample_size(
        endpoint_data,RTI_FALSE, encapsulation_id, 
        current_alignment, &sample->seq);
    if (include_encapsulation) {
        current_alignment += encapsulation_size;
    }
    return current_alignment - initial_alignment;
}
unsigned int CompletypeInSequencePlugin_get_serialized_sample_size ( PRESTypePluginEndpointData endpoint_data , RTIBool include_encapsulation , RTIEncapsulationId encapsulation_id , unsigned int current_alignment , const CompletypeInSequence * sample ) { unsigned int initial_alignment = current_alignment ; unsigned int encapsulation_size = current_alignment ; if ( endpoint_data ) { } if ( sample ) { } if ( include_encapsulation ) { if ( ! RTICdrEncapsulation_validEncapsulationId ( encapsulation_id ) ) { return 1 ; } RTICdrStream_getEncapsulationSize ( encapsulation_size ) ; encapsulation_size -= current_alignment ; current_alignment = 0 ; initial_alignment = 0 ; } current_alignment += Estructura_seqPlugin_get_serialized_sample_size ( endpoint_data , RTI_FALSE , encapsulation_id , current_alignment , & sample -> seq ) ; if ( include_encapsulation ) { current_alignment += encapsulation_size ; } return current_alignment - initial_alignment ; }
Returns the size of the sample in its serialized form (in bytes).
Returns the size of the sample in its serialized form ( in bytes ) .
/* To avoid warnings */ /* To avoid warnings */