46 |
{ |
{ |
47 |
private ByteOrder endian = ByteOrder.BIG_ENDIAN; |
private ByteOrder endian = ByteOrder.BIG_ENDIAN; |
48 |
|
|
49 |
|
protected byte [] backing_buffer; |
50 |
|
|
51 |
/** |
/** |
52 |
* Allocates a new direct byte buffer. |
* Allocates a new direct byte buffer. |
53 |
*/ |
*/ |
54 |
public static ByteBuffer allocateDirect (int capacity) |
public static ByteBuffer allocateDirect (int capacity) |
|
protected byte [] backing_buffer; |
|
|
|
|
55 |
{ |
{ |
56 |
ByteBuffer b = new gnu.java.nio. ByteBufferImpl(capacity, 0, capacity); |
ByteBuffer b = new gnu.java.nio. ByteBufferImpl(capacity, 0, capacity); |
57 |
return b; |
return b; |