Java tutorial
import java.nio.FloatBuffer; public class Main { public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0, 1.23F); floatBuffer.rewind(); FloatBuffer floatBuffer1 = FloatBuffer.allocate(10); floatBuffer1.put(floatBuffer); System.out.println(floatBuffer.arrayOffset()); } }