[ 
https://issues.apache.org/jira/browse/DERBY-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-5210:
--------------------------------------

    Issue & fix info: [Patch Available]

I still intend to do some more testing, but I think the patch is ready for 
review, so I'm setting the patch available flag.

> Use java.nio.ByteBuffer in client.net.Request
> ---------------------------------------------
>
>                 Key: DERBY-5210
>                 URL: https://issues.apache.org/jira/browse/DERBY-5210
>             Project: Derby
>          Issue Type: Improvement
>          Components: Network Client
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5210-1a.diff
>
>
> We should see if we could use a java.nio.ByteBuffer instead of a byte array 
> in org.apache.derby.client.net.Request, similar to what we did for DDMWriter 
> in DERBY-2936. ByteBuffer provides some helper methods that allows us to 
> simplify the code that puts multi-byte values into the buffer (like 
> ByteBuffer.putShort(), putInt(), putLong()). It may also be a first step on 
> the way to using a CharsetEncoder to encode strings without going via an 
> intermediate throw-away byte array (see DERBY-5068 for details).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to