Ava Chow
3b39a8aeb4
Merge bitcoin/bitcoin#34483 : refactor: Use SpanReader over DataStream
...
fa0677d131 refactor: Use SpanReader over DataStream (MarcoFalke)
fad3eb3956 refactor: Use SpanReader over DataStream (MarcoFalke)
fa06e26764 refactor: [qt] Use SpanReader to avoid two vector copies (MarcoFalke)
fabd4d2e2e refactor: Avoid UB in SpanReader::ignore (MarcoFalke)
fa20bc2ec2 refactor: Use empty() over eof() in the streams interface (MarcoFalke)
fa879db735 test: Read debug log for self-checking comment (MarcoFalke)
Pull request description:
This changes all places, where possible, to use SpanReader over DataStream. This makes the code easier to read and reason about, because `SpanReader` can never write data. Also, the code should be minimally faster, because it avoids a full redundant copy of the whole vector of bytes.
ACKs for top commit:
stickies-v:
re-ACK fa0677d131
achow101:
ACK fa0677d131
janb84:
re ACK fa0677d131
sipa:
crACK fa0677d131
Tree-SHA512: 1d9f43fc6e71d481cf7b8f8457f479745ee331734649e9e2c2ab00ce5d317112796c77afc328612ed004e65ac5c16fc92279d760cfb012cfddce9098c4af810f
2026-02-06 18:00:18 -08:00
..
2026-02-06 17:10:25 -08:00
2025-12-16 22:21:15 +01:00
2026-01-23 15:59:07 +01:00
2026-01-20 23:59:43 +01:00
2026-01-20 23:59:41 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-05-13 15:50:02 +02:00
2025-12-16 22:21:15 +01:00
2026-01-14 11:38:07 -08:00
2026-01-12 16:54:11 +01:00
2025-12-16 22:21:15 +01:00
2026-02-06 07:56:57 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-01-12 17:38:30 -05:00
2025-12-16 11:25:46 -05:00
2026-01-29 09:47:10 -05:00
2026-01-29 14:59:36 -08:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-01-22 21:01:55 +01:00
2026-02-06 07:56:57 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-07-07 10:39:45 +02:00
2025-12-16 22:21:15 +01:00
2025-06-03 15:13:54 +02:00
2025-10-27 10:41:02 +01:00
2025-12-16 22:21:15 +01:00
2025-12-17 11:57:11 -03:00
2025-12-16 22:21:15 +01:00
2026-01-31 08:45:10 +03:00
2025-12-16 22:21:15 +01:00
2026-01-16 11:00:58 +01:00
2025-08-11 16:47:51 +01:00
2025-12-16 22:21:15 +01:00
2025-12-17 16:54:35 +00:00
2026-01-20 15:47:17 -08:00
2025-12-16 22:21:15 +01:00
2025-05-30 10:12:38 -04:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-11-30 10:57:48 -05:00
2026-01-20 22:41:25 +01:00
2025-12-16 22:21:15 +01:00
2025-10-09 20:47:25 +02:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-06 17:10:25 -08:00
2026-02-06 17:10:25 -08:00
2026-01-27 14:45:35 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-03 13:36:58 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-11-25 10:35:11 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-06 17:10:25 -08:00
2026-02-06 17:10:25 -08:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-02 15:07:01 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-06 07:56:57 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-08-14 10:17:32 +10:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-05 15:23:54 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-06 07:56:57 +01:00
2026-02-06 07:56:57 +01:00
2026-02-06 07:56:57 +01:00
2026-01-27 14:45:35 +01:00
2025-12-16 22:21:15 +01:00
2025-12-30 12:12:26 -08:00
2025-12-03 13:36:58 +01:00
2025-12-16 22:21:15 +01:00
2026-01-23 15:59:07 +01:00
2026-02-06 18:00:18 -08:00
2026-01-29 14:43:27 -08:00
2026-02-02 15:21:16 -08:00
2025-12-16 22:21:15 +01:00
2025-06-03 19:56:55 +02:00
2025-12-16 22:21:15 +01:00