HomePhabricator

Introduce Span type and use it instead of FLATDATA

Authored by Pieter Wuille <pieter.wuille@gmail.com> on Apr 4 2018, 18:56.

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

Committed
deadalnixFri, Oct 4, 12:20
Pushed
jasonbcoxFri, Oct 4, 20:53
Reviewer
Restricted Project
Differential Revision
D4199: Introduce Span type and use it instead of FLATDATA
Parents
rSTAGING314fae5f080b: [cmake] Create a lib specifically for script related components
Branches
Unknown
Tags
Unknown