예제 #1
0
		private IntToByteBufferAdapter(java.nio.ByteBuffer byteBuffer) : base(byteBuffer.
			capacity() / libcore.io.SizeOf.INT)
		{
			this.byteBuffer = byteBuffer;
			this.byteBuffer.clear();
			this.effectiveDirectAddress = byteBuffer.effectiveDirectAddress;
		}
예제 #2
0
		internal FloatToByteBufferAdapter(java.nio.ByteBuffer byteBuffer) : base(byteBuffer
			.capacity() / libcore.io.SizeOf.FLOAT)
		{
			this.byteBuffer = byteBuffer;
			this.byteBuffer.clear();
			this.effectiveDirectAddress = byteBuffer.effectiveDirectAddress;
		}
예제 #3
0
		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;
		}
예제 #4
0
		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;
		}