private IntToByteBufferAdapter(java.nio.ByteBuffer byteBuffer) : base(byteBuffer. capacity() / libcore.io.SizeOf.INT) { this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.effectiveDirectAddress = byteBuffer.effectiveDirectAddress; }
internal FloatToByteBufferAdapter(java.nio.ByteBuffer byteBuffer) : base(byteBuffer .capacity() / libcore.io.SizeOf.FLOAT) { this.byteBuffer = byteBuffer; this.byteBuffer.clear(); this.effectiveDirectAddress = byteBuffer.effectiveDirectAddress; }
internal static java.nio.ReadWriteFloatArrayBuffer copy(java.nio.FloatArrayBuffer other, int markOfOther) { java.nio.ReadWriteFloatArrayBuffer buf = new java.nio.ReadWriteFloatArrayBuffer(other .capacity(), other.backingArray, other.offset); buf._limit = other._limit; buf._position = other.position(); buf._mark = markOfOther; return buf; }
private java.nio.CharBuffer allocateMore(java.nio.CharBuffer output) { if (output.capacity() == 0) { return java.nio.CharBuffer.allocate(1); } java.nio.CharBuffer result = java.nio.CharBuffer.allocate(output.capacity() * 2); output.flip(); result.put(output); return result; }