/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/crypto/hex_base.h
24 строки
727 B
MarcoFalke
refactor: Enforce readability-avoid-const-params-in-decls
15 янв 2026, 01:04
15 янв 2026, 01:04
fa64d84
Код
Авторство
О чём код?
// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CRYPTO_HEX_BASE_H #define BITCOIN_CRYPTO_HEX_BASE_H #include <span.h> #include <cstddef> #include <cstdint> #include <span> #include <string> /** * Convert a span of bytes to a lower-case hexadecimal string. */ std::string HexStr(std::span<const uint8_t> s); inline std::string HexStr(std::span<const char> s) { return HexStr(MakeUCharSpan(s)); } inline std::string HexStr(std::span<const std::byte> s) { return HexStr(MakeUCharSpan(s)); } signed char HexDigit(char c); #endif // BITCOIN_CRYPTO_HEX_BASE_H