xerial.larray.buffer.WrappedLBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of larray-buffer Show documentation
Show all versions of larray-buffer Show documentation
LArray off-heap buffer library
package xerial.larray.buffer;
/**
* A subrange of memory
*
* @author Taro L. Saito
*/
public class WrappedLBuffer extends LBufferAPI {
private final long offset;
private final long size;
public WrappedLBuffer(Memory m, long offset, long size) {
super(m);
this.offset = offset;
this.size = size;
}
@Override
public long address() {
return m.address() + offset;
}
@Override
public long size() {
return size;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy