LCOV - code coverage report
Current view: top level - src - uint.c (source / functions) Hit Total Coverage
Test: Code coverage Lines: 7 7 100.0 %
Date: 2026-07-14 21:28:07 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // Copyright 2019-2026 David Robillard <d@drobilla.net>
       2                 :            : // SPDX-License-Identifier: ISC
       3                 :            : 
       4                 :            : #include "fixed.h"
       5                 :            : 
       6                 :            : #include <exess/exess.h>
       7                 :            : 
       8                 :            : #include <stdint.h>
       9                 :            : #include <stdlib.h>
      10                 :            : 
      11                 :            : EXESS_NONBLOCKING ExessResult
      12                 :      16923 : exess_read_uint(const char* const str, uint32_t* const out)
      13                 :            : {
      14                 :      16923 :   uint64_t          value = 0U;
      15                 :      16923 :   const ExessResult r     = read_unsigned(str, UINT32_MAX, &value);
      16                 :            : 
      17                 :      16923 :   *out = (uint32_t)value;
      18                 :      16923 :   return r;
      19                 :            : }
      20                 :            : 
      21                 :            : EXESS_NONBLOCKING ExessResult
      22                 :      16938 : exess_write_uint(const uint32_t value, const size_t buf_size, char* const buf)
      23                 :            : {
      24                 :      16938 :   return exess_write_ulong(value, buf_size, buf);
      25                 :            : }

Generated by: LCOV version 1.16