Here you can find the source of copyLongBuffer(LongBuffer paramLongBuffer)
public static LongBuffer copyLongBuffer(LongBuffer paramLongBuffer)
//package com.java2s; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.LongBuffer; public class Main { public static LongBuffer copyLongBuffer(LongBuffer paramLongBuffer) { return copyLongBufferAsByteBuffer(paramLongBuffer).asLongBuffer(); }//from w w w . j ava2s . c o m public static ByteBuffer copyLongBufferAsByteBuffer( LongBuffer paramLongBuffer) { ByteBuffer localByteBuffer = newByteBuffer(paramLongBuffer .remaining() * 8); paramLongBuffer.mark(); localByteBuffer.asLongBuffer().put(paramLongBuffer); paramLongBuffer.reset(); localByteBuffer.rewind(); return localByteBuffer; } public static ByteBuffer newByteBuffer(int paramInt) { ByteBuffer localByteBuffer = ByteBuffer.allocateDirect(paramInt); localByteBuffer.order(ByteOrder.nativeOrder()); return localByteBuffer; } }