Name: js151677 Date: 07/06/2004
A DESCRIPTION OF THE REQUEST :
it would be nice is there was a method signature:
ByteBuffer slice(int position, int length)
that would allow the user to create a (sub)view of a larger byte buffer,
this is especially useful for record management types of applications
JUSTIFICATION :
for record management styles of applications it would be invaluable to
be able to overlay a ByteBuffer over a larger ByteBuffer that contains
a set of records, mapping the view onto the bounds of a particular
record.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
as with the existing slice(); with additional semantics of starting at
specified position, for length bytes with appropriate overflow/underlfow
semantics
ACTUAL -
see above
CUSTOMER SUBMITTED WORKAROUND :
none that I can see!
(Incident Review ID: 282349)
======================================================================
We'd also like to request "absolute" versions of the bulk put(byte[] ...) & get (byte[] ...)
methods while we are at it!
:D
###@###.### 2004-07-30
###@###.### 10/6/04 16:15 GMT
A DESCRIPTION OF THE REQUEST :
it would be nice is there was a method signature:
ByteBuffer slice(int position, int length)
that would allow the user to create a (sub)view of a larger byte buffer,
this is especially useful for record management types of applications
JUSTIFICATION :
for record management styles of applications it would be invaluable to
be able to overlay a ByteBuffer over a larger ByteBuffer that contains
a set of records, mapping the view onto the bounds of a particular
record.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
as with the existing slice(); with additional semantics of starting at
specified position, for length bytes with appropriate overflow/underlfow
semantics
ACTUAL -
see above
CUSTOMER SUBMITTED WORKAROUND :
none that I can see!
(Incident Review ID: 282349)
======================================================================
We'd also like to request "absolute" versions of the bulk put(byte[] ...) & get (byte[] ...)
methods while we are at it!
:D
###@###.### 2004-07-30
###@###.### 10/6/04 16:15 GMT
- csr for
-
JDK-8219608 (bf) Add ByteBuffer.slice(int index, int length)
- Closed
- relates to
-
JDK-8220614 (bf) Buffer absolute slice methods should use Objects.checkFromIndexSize()
- Closed
-
JDK-8258955 (bf) slice(int, int) on view buffers fails to adjust index according to primitive size
- Closed
-
JDK-5029431 (bf) Add absolute bulk put and get methods
- Resolved
- links to