Awa LWM2M C API (0.2.5)  
Functions
Awa___Array_IsValid

Determine whether a resource instance at the specified index of an array is valid. More...

Functions

bool AwaStringArray_IsValid (const AwaStringArray *array, AwaArrayIndex index)
 
bool AwaIntegerArray_IsValid (const AwaIntegerArray *array, AwaArrayIndex index)
 
bool AwaFloatArray_IsValid (const AwaFloatArray *array, AwaArrayIndex index)
 
bool AwaBooleanArray_IsValid (const AwaBooleanArray *array, AwaArrayIndex index)
 
bool AwaOpaqueArray_IsValid (const AwaOpaqueArray *array, AwaArrayIndex index)
 
bool AwaTimeArray_IsValid (const AwaTimeArray *array, AwaArrayIndex index)
 
bool AwaObjectLinkArray_IsValid (const AwaObjectLinkArray *array, AwaArrayIndex index)
 

Detailed Description

Determine whether a resource instance at the specified index of an array is valid.

Parameters
[in]arrayA pointer to a valid resource array of the specified type.
[in]indexThe index of the resource instance to retrieve.
Returns
true if the input array is valid and the resource instance at the specified index is not NULL
false if the input array is invalid, the index is out of range, or the value at the specified index is NULL.

Function Documentation

bool AwaStringArray_IsValid ( const AwaStringArray array,
AwaArrayIndex  index 
)
bool AwaIntegerArray_IsValid ( const AwaIntegerArray array,
AwaArrayIndex  index 
)
bool AwaFloatArray_IsValid ( const AwaFloatArray array,
AwaArrayIndex  index 
)
bool AwaBooleanArray_IsValid ( const AwaBooleanArray array,
AwaArrayIndex  index 
)
bool AwaOpaqueArray_IsValid ( const AwaOpaqueArray array,
AwaArrayIndex  index 
)
bool AwaTimeArray_IsValid ( const AwaTimeArray array,
AwaArrayIndex  index 
)
bool AwaObjectLinkArray_IsValid ( const AwaObjectLinkArray array,
AwaArrayIndex  index 
)