Entire-Metadata: .entire/metadata/fb87247f-2a75-407e-b336-cbc8c20ba5a6 Entire-Session: fb87247f-2a75-407e-b336-cbc8c20ba5a6 Entire-Strategy: manual-commit
40 lines
955 B
C
40 lines
955 B
C
/*
|
|
* (c) Copyright, Real-Time Innovations, 2002-2026.
|
|
* All rights reserved.
|
|
* No duplications, whole or partial, manual or electronic, may be made
|
|
* without express written permission. Any such copies, or
|
|
* revisions thereof, must display this notice unaltered.
|
|
* This code contains trade secrets of Real-Time Innovations, Inc.
|
|
*/
|
|
|
|
#ifndef reda_boundedSeq_h
|
|
#define reda_boundedSeq_h
|
|
|
|
#include "osapi/osapi_type.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define REDA_BOUNDED_SEQUENCE(TBoundedSeq, T, TMaxLength) \
|
|
typedef struct { \
|
|
/*e \
|
|
* Maximum capacity of sequence. \
|
|
*/ \
|
|
RTI_UINT32 _maximum; \
|
|
/*e \
|
|
* Actual length of data in sequence. \
|
|
*/ \
|
|
RTI_UINT32 _length; \
|
|
/*e \
|
|
* Buffer to store the values. \
|
|
*/ \
|
|
T _buffer[TMaxLength]; \
|
|
} TBoundedSeq;
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* reda_boundedSeq_h */
|