Closed
Description
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.