Having size() and data() methods makes these work more nicely with spans and multiprocess serialization code
This change was originally pushed as part of #10102
Having size() and data() methods makes these work more nicely with spans and
multiprocess serialization code
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.