Skip to content

Unsafe API: make segment size and remaining capacity public #408

Closed
@fzhinkin

Description

@fzhinkin

Proposed Unsafe API design explicitly mentioned availability Segment.size and Segment.remainingCapacity properties.
Moreover, some of our samples use these properties.
However, properties themselves remain internal.

Without having access to these properties it is quite hard to reason about number of bytes that could be read from or written to a segment using Unsafe API, thus we need to make them public.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions