Andrew Chow
7952a5934a
Merge bitcoin/bitcoin#27927 : util: Allow std::byte and char Span serialization
...
fa38d86235 Use only Span{} constructor for byte-like types where possible (MarcoFalke)
fa257bc831 util: Allow std::byte and char Span serialization (MarcoFalke)
Pull request description:
Seems odd to require developers to cast all byte-like spans passed to serialization to `unsigned char`-spans. Fix that by passing and accepting byte-like spans as-is. Finally, add tests and update the code to use just `Span` where possible.
ACKs for top commit:
sipa:
utACK fa38d86235
achow101:
ACK fa38d86235
ryanofsky:
Code review ACK fa38d86235 . This looks great. The second commit really removes a lot of boilerplate and shows why the first commit is useful.
Tree-SHA512: 788592d9ff515c3ebe73d48f9ecbb8d239f5b985af86f09974e508cafb0ca6d73a959350295246b4dfb496149bc56330a0b5d659fc434ba6723dbaba0b7a49e5
2023-06-28 15:12:12 -04:00
..
2023-06-28 15:12:12 -04:00
2023-06-20 10:23:08 +02:00
2023-06-12 19:47:19 +01:00
2023-06-16 10:38:19 +01:00
2023-06-15 10:27:56 -06:00
2023-06-12 12:54:49 -04:00
2023-05-20 12:08:13 +02:00
2023-06-14 23:15:20 +02:00
2023-06-27 18:19:21 -04:00
2023-06-26 09:43:38 +01:00
2023-06-12 12:54:49 -04:00
2023-06-27 18:19:21 -04:00
2023-05-20 12:08:13 +02:00
2023-06-21 11:04:00 -04:00
2023-06-20 10:23:08 +02:00
2023-06-27 10:13:37 +02:00
2023-06-20 10:23:08 +02:00
2023-06-16 10:38:19 +01:00
2023-06-28 15:12:12 -04:00
2023-05-26 13:41:07 -03:00
2023-05-30 17:26:51 +02:00
2023-05-29 13:26:31 +02:00
2023-05-20 12:08:13 +02:00
2023-05-30 17:15:22 +02:00
2023-05-20 12:08:13 +02:00
2023-05-20 12:08:13 +02:00
2023-05-20 12:08:13 +02:00
2023-05-20 12:08:13 +02:00
2023-06-16 10:38:19 +01:00
2023-05-20 12:08:13 +02:00
2023-05-25 19:24:05 +02:00
2023-05-25 19:24:05 +02:00
2023-05-10 10:39:58 +02:00
2023-05-10 10:39:58 +02:00
2023-06-16 10:38:19 +01:00
2023-05-20 12:08:13 +02:00
2023-05-09 18:48:52 +02:00
2023-05-20 12:08:13 +02:00
2023-05-09 18:47:14 +02:00
2023-06-28 12:20:25 +01:00
2023-05-20 12:08:13 +02:00
2023-06-27 18:19:21 -04:00
2023-06-16 10:38:19 +01:00
2023-05-25 06:30:10 +00:00
2023-06-23 14:22:33 -04:00
2023-06-23 14:22:33 -04:00
2023-06-15 10:27:56 -06:00
2023-06-15 10:27:56 -06:00
2023-06-16 10:38:19 +01:00
2023-06-23 14:24:32 -04:00
2023-06-17 23:55:16 +05:30
2023-06-16 10:38:19 +01:00
2023-05-30 11:39:59 -04:00
2023-06-26 10:39:32 +01:00
2023-05-23 13:07:49 -04:00
2023-06-28 15:12:12 -04:00
2023-06-23 18:03:06 -03:00
2023-05-26 13:41:07 -03:00
2023-05-26 13:41:07 -03:00
2023-05-20 12:08:13 +02:00
2023-05-15 10:18:58 +02:00
2023-06-23 14:22:33 -04:00
2023-06-27 10:13:37 +02:00
2023-06-23 14:24:32 -04:00
2023-06-23 14:24:32 -04:00
2023-06-12 10:24:14 -03:00
2023-06-16 10:38:19 +01:00
2023-06-27 10:13:29 +02:00
2023-06-09 17:52:23 -03:00
2023-06-09 17:52:23 -03:00
2023-05-20 12:08:13 +02:00
2023-06-23 14:22:33 -04:00
2023-06-01 10:27:33 -04:00
2023-06-16 10:38:19 +01:00
2023-05-24 08:55:47 -04:00
2023-05-29 13:26:31 +02:00
2023-06-14 23:15:20 +02:00
2023-06-12 19:47:19 +01:00
2023-06-20 10:23:08 +02:00
2023-06-20 10:23:08 +02:00
2023-05-31 15:43:01 +01:00
2023-06-28 15:12:12 -04:00
2023-06-23 16:21:43 -04:00
2023-06-27 15:42:51 -04:00
2023-05-15 10:18:58 +02:00
2023-05-20 12:08:13 +02:00