RFR: 8155902: DataOutputStream writeInt creates 2 packets instead of 1 [v2]
Brian Burkhalter
bpb at openjdk.org
Mon Jul 10 17:04:14 UTC 2023
On Fri, 7 Jul 2023 18:14:16 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>>> I would not want to give any assurances about whether the bytes of an encoded primitive were written individually or as a group.
>>
>> Would it be helpful to add further verbiage?
>>
>> For example, the sequence of bytes comprising the primitive data type may be written as more than one packet of bytes.
>
> "packet" is network centric terminology.
> Perhaps something like: "may be written individually or in any grouping of bytes"
Commit 43c392e8c797f5a5c29a67e87f350e8dc9c5b190 changed it to
The write methods of this class delegate to the methods
of the underlying output stream, hence there is no
guarantee as to the details of how the bytes are written.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14791#discussion_r1258602797
More information about the core-libs-dev
mailing list