LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
JUNO_POINTER_API_TAG Struct Reference

Pointer operations API (copy/reset). More...

#include <pointer_api.h>

Data Fields

JUNO_STATUS_T(* Copy )(JUNO_POINTER_T tDest, const JUNO_POINTER_T tSrc)
 Copy memory from source to destination.
 
JUNO_STATUS_T(* Reset )(JUNO_POINTER_T tPointer)
 Reset the memory at the pointer (e.g., zero-initialize).
 

Detailed Description

Pointer operations API (copy/reset).

Implementations should enforce type-appropriate semantics:

  • Copy: copies the value referenced by tSrc into tDest's storage location (size/alignment validated by callers via verification helpers/macros).
  • Reset: resets the pointee to a defined "empty" state (often zero-init), suitable for clearing slots in containers.

Field Documentation

◆ Copy

JUNO_STATUS_T(* JUNO_POINTER_API_TAG::Copy) (JUNO_POINTER_T tDest, const JUNO_POINTER_T tSrc)

Copy memory from source to destination.

Parameters
tDestDestination pointer descriptor.
tSrcSource pointer descriptor.
Returns
JUNO_STATUS_SUCCESS on success, error code otherwise.

◆ Reset

JUNO_STATUS_T(* JUNO_POINTER_API_TAG::Reset) (JUNO_POINTER_T tPointer)

Reset the memory at the pointer (e.g., zero-initialize).

Parameters
tPointerPointer descriptor to reset.
Returns
JUNO_STATUS_SUCCESS on success, error code otherwise.

The documentation for this struct was generated from the following file: