8219014: (bf) Add absolute bulk put methods which accept a source Buffer
Brian Burkhalter
brian.burkhalter at oracle.com
Mon Feb 10 17:53:40 UTC 2020
> On Feb 7, 2020, at 8:07 AM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
>
>> On Feb 6, 2020, at 12:30 PM, Brian Burkhalter <brian.burkhalter at oracle.com <mailto:brian.burkhalter at oracle.com>> wrote:
>>
>>
>>> On Feb 6, 2020, at 12:09 PM, Paul Sandoz <paul.sandoz at oracle.com <mailto:paul.sandoz at oracle.com>> wrote:
>>>
>>> To me the spec is quite straightforward, it should behave as is the relative bulk method adjusting and reverting the positional state.
>>
>> That’s the behavior, except that in its present form the proposed method allows the source and target buffers to be the same.
>>
>
> Yeah, i was over simplifying.
On second thought it might be better to disallow the source buffer being the same as the target buffer as in the relative bulk version. That would retain consistency while avoiding potential problems.
Also, I agree that removing some code duplication by re-implementing the relative bulk methods to call the absolute bulk methods would be a good idea, but this might better be done as a separate, follow-on issue to this one.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200210/2bc623d1/attachment.htm>
More information about the nio-dev
mailing list