Bug 3703 - public ByteBuffer get (long index, byte[] dst, int off, int len) should use peekFully
Summary: public ByteBuffer get (long index, byte[] dst, int off, int len) should use p...
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Phil Muldoon
URL:
Keywords:
Depends on:
Blocks: 2231 2243
  Show dependency treegraph
 
Reported: 2006-12-11 22:55 UTC by Phil Muldoon
Modified: 2006-12-11 22:57 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Muldoon 2006-12-11 22:55:26 UTC
Right now it uses:

peek(lowWater + index, dst, off, len);

But it should use:

peekFully(lowWater + index,dst,off,len)

In the PtraceByteBuffer implementation, the get method will only return one word
using peek.
Comment 1 Phil Muldoon 2006-12-11 22:57:24 UTC
2006-12-11  Phil Muldoon  <pmuldoon@redhat.com>

	* eio/ByteBuffer.java (get): Change to use peekFully over peek.