QUEUE_LIB Embedded C library v1.0.0
Functions
Queue Internal Functions

Internal helper functions for the queue module (not part of public API). More...

Collaboration diagram for Queue Internal Functions:

Functions

PRIVATE void copy_bytes (uint8_t *dst, const uint8_t *src, uint16_t size)
 Deterministic byte-wise copy of memory. More...
 

Detailed Description

Internal helper functions for the queue module (not part of public API).

These functions are local to queue.c and not exposed in queue.h. They support deterministic byte copying and argument validation.

Function Documentation

◆ copy_bytes()

PRIVATE void copy_bytes ( uint8_t *  dst,
const uint8_t *  src,
uint16_t  size 
)

Deterministic byte-wise copy of memory.

Parameters
[out]dstDestination buffer (non-NULL).
[in]srcSource buffer (non-NULL).
[in]sizeNumber of bytes to copy.

Used internally by queue_push/queue_pop to copy arbitrary elements in a deterministic, type-agnostic way.

Note
MISRA Deviation DV-QUEUE-001 applies.
Here is the caller graph for this function: