final RawData address = new MemoryRawData(resource);
final Pointer address = new MemoryRawData(resource);
    public static ByteBuffer wrap(MemoryResource resource) {        final Object owner = resource.getOwner();        final RawData address = new MemoryRawData(resource);        final int size = resource.getSize().toInt();        final ByteBuffer result = new DirectByteBufferImpl.ReadWrite(owner, address, size, size, 0);        result.mark();        return result;    }