Skip to content

Implement ByteStrings #133

@fzhinkin

Description

@fzhinkin

Immutable array wrappers are ubiquitous in JVM ecosystem. These wrappers usually provide different handy methods like content-based equals/hashCode (allowing to use of such wrappers in hash-based data structures), string-like APIs to search for particular values or subsequences within a wrapper, copy or create a subsequence, and so on. Also, these wrappers guarantee that the backing array won’t change, no matter what. The latter allows to overcome the need for defensive array copies.

Okio already has ByteStrings, but these are intermingled with Okio internals. It would be nice to provide an implementation based on Okio ByteStrings, supported by kotlinx-io, but shipped as a different artifact so that users could include it in their projects separately.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions