0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-06 14:19:59 -05:00
bitcoin-core/src/util
l0rinc 5b74a849cf
util: Add consteval ""_hex[_v][_u8] literals
""_hex is a compile-time user-defined literal returning std::array<std::byte>, equivalent of ParseHex.

Variants:
- ""_hex_v returns std::vector<std::byte>
- ""_hex_u8 returns std::array<uint8_t>
- ""_hex_v_u8 returns std::vector<uint8_t> - Directly serializable as a size-prefixed OP_PUSH CScript payload using operator<<.

Also extracts from_hex into shared util::ConstevalHexDigit function.

Co-Authored-By: hodlinator <172445034+hodlinator@users.noreply.github.com>
Co-Authored-By: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
Co-Authored-By: Ryan Ofsky <ryan@ofsky.org>
Co-Authored-By: stickies-v <stickies-v@protonmail.com>
2024-08-28 19:09:51 +02:00
..
any.h
asmap.cpp
asmap.h
batchpriority.cpp
batchpriority.h
bip32.cpp
bip32.h
bitdeque.h
bitset.h
bytevectorhash.cpp
bytevectorhash.h
chaintype.cpp testnet: Introduce Testnet4 2024-08-06 01:38:10 +02:00
chaintype.h testnet: Introduce Testnet4 2024-08-06 01:38:10 +02:00
check.cpp
check.h
CMakeLists.txt cmake: Build bitcoin_util static library 2024-08-16 19:27:38 +01:00
epochguard.h
exception.cpp
exception.h
fastrange.h
feefrac.cpp
feefrac.h
fs.cpp
fs.h
fs_helpers.cpp
fs_helpers.h
golombrice.h
hash_type.h
hasher.cpp
hasher.h
insert.h
macros.h
moneystr.cpp
moneystr.h
overflow.h
overloaded.h
rbf.cpp
rbf.h
readwritefile.cpp
readwritefile.h
result.h
serfloat.cpp
serfloat.h
signalinterrupt.cpp
signalinterrupt.h
sock.cpp
sock.h
strencodings.cpp util: remove unused IsHexNumber 2024-08-23 13:53:40 +01:00
strencodings.h util: Add consteval ""_hex[_v][_u8] literals 2024-08-28 19:09:51 +02:00
string.cpp
string.h log: Remove NOLINT(bitcoin-unterminated-logprintf) 2024-07-19 15:09:00 +02:00
subprocess.h
syserror.cpp
syserror.h
task_runner.h
thread.cpp
thread.h
threadinterrupt.cpp
threadinterrupt.h
threadnames.cpp
threadnames.h
time.cpp
time.h
tokenpipe.cpp
tokenpipe.h
trace.h
transaction_identifier.h refactor: remove TxidFromString 2024-07-31 16:47:39 +01:00
translation.h
types.h
ui_change_type.h
vecdeque.h
vector.h