Code example for ByteBuffer

Methods: isDirect

     * Try to deallocate the specified direct {@link ByteBuffer}.  Please note this method does nothing if 
     * the current platform does not support this operation or the specified buffer is not a direct buffer. 
    public static void freeDirectBuffer(ByteBuffer buffer) {
        if (buffer.isDirect()) {
    public static long directBufferAddress(ByteBuffer buffer) {
        return PlatformDependent0.directBufferAddress(buffer);
    public static Object getObject(Object object, long fieldOffset) {
        return PlatformDependent0.getObject(object, fieldOffset);
    public static int getInt(Object object, long fieldOffset) {
        return PlatformDependent0.getInt(object, fieldOffset);
Contextual code suggestions in your IDE  Get Codota for Java