MarcoFalke a12d9e5fd2
Merge #19687: refactor: make EncodeBase{32,64} consume Spans
e2aa1a585a83971639572cd2c84565ec360deac9 util: make EncodeBase64 consume Spans (Sebastian Falbesoner)
2bc207190e6f1818b04c9336f6e0d625b2a2a0ba util: make EncodeBase32 consume Spans (Sebastian Falbesoner)

Pull request description:

  To simplify the interface of the Base32/Base64 encoding functions for raw data, this PR changes them from taking two arguments (pointer and length) to just one Span. Most calls to `EncodeBase64` pass data from `CDataStream` instances, which unfortunately internally work with `char*` pointers rather than `unsigned char*`, but thanks to the recently introduced `MakeUCharSpan` helper, converting them is quite easy.

ACKs for top commit:
  MarcoFalke:
    ACK e2aa1a585a83971639572cd2c84565ec360deac9 🐮
  vasild:
    ACK e2aa1a585

Tree-SHA512: 43bd3bd2ee8e3be2474db0a81dae9d9e88fac2464b96d1b042147106ed7433799dcba3000c69990511ecfc697b0c7306ce85f2ecb2293e2e44fd356c9694b150
2020-08-26 11:52:31 +02:00
..
2020-07-19 02:05:29 -04:00
2020-08-25 18:52:57 +02:00
2020-06-09 13:39:09 -07:00
2020-02-09 07:44:29 -08:00
2020-04-16 13:33:09 -04:00
2020-08-24 07:52:17 +02:00
2020-04-16 13:33:09 -04:00
2020-07-01 14:44:28 -04:00
2020-07-01 14:44:28 -04:00
2020-07-08 14:26:14 +03:00
2020-08-06 16:28:26 -07:00
2020-08-06 16:28:26 -07:00
2020-07-30 13:57:54 -07:00
2020-07-01 18:03:12 -04:00
2020-04-30 09:19:14 -04:00
2020-06-21 06:02:59 -04:00
2020-06-21 06:02:59 -04:00
2020-08-02 16:42:39 +03:00
2020-08-02 16:42:39 +03:00
2020-07-01 14:44:24 -04:00
2020-08-06 19:41:43 +02:00
2020-04-16 13:33:09 -04:00
2020-07-19 02:10:41 -04:00