Page MenuHomePhabricator

Introduce Span type and use it instead of FLATDATA

Authored by deadalnix on Oct 2 2019, 14:10.


  • Add Slice: a (pointer, size) array view that acts like a container
  • Support serializing Span<unsigned char> and use that instead of FLATDATA

This is a backport of Core PR12886

Test Plan
make check
./test/functional/ --extended

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix created this revision.Oct 2 2019, 14:10
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 2 2019, 14:10
Fabien requested changes to this revision.Oct 3 2019, 19:50
Fabien added a subscriber: Fabien.
Fabien added inline comments.
47 ↗(On Diff #13319)

#endif // BITCOIN_SPAN_H
Linter update coming soon.

This revision now requires changes to proceed.Oct 3 2019, 19:50
deadalnix updated this revision to Diff 13346.Oct 3 2019, 21:41

Add header guard comment

Fabien accepted this revision.Oct 4 2019, 06:35
This revision is now accepted and ready to land.Oct 4 2019, 06:35