table of contents
| PMIX_BYTE_OBJECT_FREE(3) | OpenPMIx | PMIX_BYTE_OBJECT_FREE(3) |
PMIx_Byte_object_free — Release an array of pmix_byte_object_t(5) <#man5-pmix-byte-object-t> structures and its storage.
SYNOPSIS¶
#include <pmix.h> void PMIx_Byte_object_free(pmix_byte_object_t *g, size_t n);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- g: Pointer to the array of pmix_byte_object_t(5) <#man5-pmix-byte-object-t> structures to be released, as returned by PMIx_Byte_object_create(3) <#man3-pmix-byte-object-create>.
- n: Number of structures in the array.
DESCRIPTION¶
Release an array of pmix_byte_object_t <#man5-pmix-byte-object-t> structures that was allocated by PMIx_Byte_object_create(3) <#man3-pmix-byte-object-create>. Each of the n elements is destructed (freeing any bytes payload it holds), and then the storage for the array itself is freed.
If g is NULL the function does nothing.
RETURN VALUE¶
PMIx_Byte_object_free returns no value (void).
NOTES¶
PMIx_Byte_object_free frees the array storage itself, so it must only be used on arrays obtained from PMIx_Byte_object_create(3) <#man3-pmix-byte-object-create>. To release only the payload of a caller-provided (stack or embedded) object without freeing its storage, use PMIx_Byte_object_destruct(3) <#man3-pmix-byte-object-destruct> instead.
The convenience macro PMIX_BYTE_OBJECT_FREE wraps this function and additionally sets the caller’s pointer to NULL.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 21, 2026 |