(int capacity)
| 21 | } |
| 22 | |
| 23 | public static ByteBuffer allocate(int capacity) { |
| 24 | return new ArrayByteBuffer(new byte[capacity], 0, capacity, false); |
| 25 | } |
| 26 | |
| 27 | public static ByteBuffer allocateDirect(int capacity) { |
| 28 | return FixedArrayByteBuffer.make(capacity); |