Expose "Bytes" utility in public API

Description

As a result of the 4.0 module organization, Bytes is in an internal package (native-protocol does not have a public API).

This is a pretty high-level utility and we reference it in some of our examples, so it would be better to have a public API version (that is checked for backward compatibility).

I think we can just create another Bytes class in a public package (maybe api.core.data?) and delegate all the methods.

Environment

None

Pull Requests

None

Status

Assignee

Olivier Michallat

Reporter

Olivier Michallat

Labels

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure