Here you can find the source of getAddress(ByteBuffer buffer)
public static long getAddress(ByteBuffer buffer)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { public static long getAddress(ByteBuffer buffer) { return ((sun.nio.ch.DirectBuffer) buffer).address(); }/*from w w w. j a v a2s . com*/ }