コード例 #1
0
ファイル: sac_objManag.c プロジェクト: xrl/opensplice
void
DDS_sequence_clean (
    void *sequence
)
{
    gapi_sequence_clean ( sequence );
}
コード例 #2
0
ファイル: gapi_objManag.c プロジェクト: S73417H/opensplice
void
gapi_sequence_replacebuf (
    void *sequence,
    _bufferAllocatorType allocbuf,
    gapi_unsigned_long count)
{
    gapiSequenceType *seq;

    seq = (gapiSequenceType *)sequence;
    if (count > seq->_maximum) {
        gapi_sequence_clean(seq);
    }
    if (seq->_buffer == NULL) {
        seq->_buffer = allocbuf(count);
        seq->_maximum = count;
        seq->_length = 0;
        seq->_release = TRUE;
    }
}