LCOV - code coverage report
Current view: top level - src/crypto - hex_base.h (source / functions) Coverage Total Hit
Test: total_coverage.info Lines: 100.0 % 2 2
Test Date: 2025-01-19 05:08:01 Functions: 100.0 % 2 2

            Line data    Source code
       1              : // Copyright (c) 2009-present The Bitcoin Core developers
       2              : // Distributed under the MIT software license, see the accompanying
       3              : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4              : 
       5              : #ifndef BITCOIN_CRYPTO_HEX_BASE_H
       6              : #define BITCOIN_CRYPTO_HEX_BASE_H
       7              : 
       8              : #include <span.h>
       9              : 
      10              : #include <cstddef>
      11              : #include <cstdint>
      12              : #include <string>
      13              : 
      14              : /**
      15              :  * Convert a span of bytes to a lower-case hexadecimal string.
      16              :  */
      17              : std::string HexStr(const Span<const uint8_t> s);
      18            3 : inline std::string HexStr(const Span<const char> s) { return HexStr(MakeUCharSpan(s)); }
      19        11134 : inline std::string HexStr(const Span<const std::byte> s) { return HexStr(MakeUCharSpan(s)); }
      20              : 
      21              : signed char HexDigit(char c);
      22              : 
      23              : #endif // BITCOIN_CRYPTO_HEX_BASE_H
        

Generated by: LCOV version 2.0-1