table of contents
| PMIX_BYTE_OBJECT_DESTRUCT(3) | OpenPMIx | PMIX_BYTE_OBJECT_DESTRUCT(3) |
PMIx_Byte_object_destruct — Release the payload of a pmix_byte_object_t(5) <#man5-pmix-byte-object-t> structure.
SYNOPSIS¶
#include <pmix.h> void PMIx_Byte_object_destruct(pmix_byte_object_t *g);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- g: Pointer to the pmix_byte_object_t(5) <#man5-pmix-byte-object-t> structure whose contents are to be released.
DESCRIPTION¶
Release the payload held by a pmix_byte_object_t <#man5-pmix-byte-object-t>. If the bytes pointer is non-NULL, the memory it references is freed. The bytes pointer is then reset to NULL and the size field is set to zero, leaving the structure in the same state as a freshly constructed object.
Only the payload is released; the storage for the structure itself is not freed. This routine is therefore the correct counterpart to PMIx_Byte_object_construct(3) <#man3-pmix-byte-object-construct> for caller-provided (stack or embedded) structures.
RETURN VALUE¶
PMIx_Byte_object_destruct returns no value (void).
NOTES¶
Do not use PMIx_Byte_object_destruct on an element of an array obtained from PMIx_Byte_object_create(3) <#man3-pmix-byte-object-create> if you also intend to free the array as a whole — use PMIx_Byte_object_free(3) <#man3-pmix-byte-object-free> for that case, which destructs every element and then frees the array storage.
The convenience macro PMIX_BYTE_OBJECT_DESTRUCT is provided as a direct wrapper around this function.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |