@Override
    public ByteBuffer allocate(final int size) {
        final Long address = MemoryUtil.nmemCalloc(size, 1);
        final ByteBuffer byteBuffer = MemoryUtil.memByteBuffer(address, size);
        DEALLOCATORS.put(address, createDeallocator(address, byteBuffer));
        return byteBuffer;
    }
Get memory address of the buffer.

@param buffer the buffer.
@return the address or -1.
jme3-lwjgl3/src/main/java/com/jme3/util/LWJGLBufferAllocator.java