HomePhabricator

Introduce Span type and use it instead of FLATDATA

Description

Introduce Span type and use it instead of FLATDATA

Summary:

  • 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/test_runner.py --extended

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D4199

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Apr 4 2018, 18:56
deadalnixCommitted on Oct 4 2019, 12:20
deadalnixPushed on Oct 4 2019, 12:20
Reviewer
Restricted Project
Differential Revision
D4199: Introduce Span type and use it instead of FLATDATA
Parents
rABC314fae5f080b: [cmake] Create a lib specifically for script related components
Branches
Unknown
Tags
Unknown