CharViewBufferImpl.java: New convenience constructor.
* java/nio/CharViewBufferImpl.java: New convenience constructor. Fix buggy call to super constructor. * java/nio/DoubleViewBufferImpl.java: Likewise. * java/nio/FloatViewBufferImpl.java: Likewise. * java/nio/IntViewBufferImpl.java: Likewise. * java/nio/LongViewBufferImpl.java: Likewise. * java/nio/ShortViewBufferImpl.java: Likewise. From-SVN: r77917
This commit is contained in:
parent
cf68bacaad
commit
5693912a7d
7 changed files with 67 additions and 6 deletions
|
@ -46,11 +46,20 @@ class IntViewBufferImpl extends IntBuffer
|
|||
private boolean readOnly;
|
||||
private ByteOrder endian;
|
||||
|
||||
IntViewBufferImpl (ByteBuffer bb, int capacity)
|
||||
{
|
||||
super (capacity, capacity, 0, -1);
|
||||
this.bb = bb;
|
||||
this.offset = bb.position();
|
||||
this.readOnly = bb.isReadOnly();
|
||||
this.endian = bb.order();
|
||||
}
|
||||
|
||||
public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity,
|
||||
int limit, int position, int mark,
|
||||
boolean readOnly, ByteOrder endian)
|
||||
{
|
||||
super (limit >> 2, limit >> 2, position >> 2, mark >> 2);
|
||||
super (capacity, limit, position, mark);
|
||||
this.bb = bb;
|
||||
this.offset = offset;
|
||||
this.readOnly = readOnly;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue