LCOV - code coverage report
Current view: top level - libs/mem/src - mem_copy_data.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-07-12 01:01:34 Functions: 100.0 % 1 1
Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : #include "mem.h"
       2                 :             : #include "mem_internal.h"
       3                 :             : 
       4                 :             : /**
       5                 :             :  * @brief Copy one data descriptor into another through @ref mem_core_data
       6                 :             :  *
       7                 :             :  * This wrapper is the public replace entry point for raw descriptor-to-descriptor
       8                 :             :  * transfers. Both descriptors must be in data mode. The actual transfer is
       9                 :             :  * delegated to @ref mem_core_data, so the payload is copied byte for byte,
      10                 :             :  * self-aliasing is supported, and only the destination element size controls
      11                 :             :  * whether the source payload size is acceptable
      12                 :             :  *
      13                 :             :  * @param destination Pointer to the destination descriptor in data mode
      14                 :             :  * @param source Pointer to the source descriptor in data mode
      15                 :             :  * @return `SUCCESS` on success; `FAILURE` otherwise
      16                 :             :  */
      17                 :          17 : Return mem_copy_data(
      18                 :             :         memory       *destination,
      19                 :             :         const memory *source)
      20                 :             : {
      21                 :          17 :         return(mem_core_data(TRANSFER_REPLACE,destination,source));
      22                 :             : }
        

Generated by: LCOV version 2.0-1