@Override public final void read(long pos, ByteBuffer bb) throws IOException { access(true, pos, bb); }
@Override public final void read(long pos, ByteBuffer bb) throws IOException { access(true, pos, bb); }
@Override public final void write(long pos, ByteBuffer bb) throws IOException { access(false, pos, bb); }
@Override public final void read(long pos, ByteBuffer bb) throws IOException { access(true, pos, bb); }
@Override public final void write(long pos, byte[] buf, int offset, int length) throws IOException { access(false, pos, buf, offset, length); }
@Override public final void read(long pos, long ptr, int offset, int length) throws IOException { access(true, pos, ptr + offset, length); }
@Override public final void write(long pos, ByteBuffer bb) throws IOException { access(false, pos, bb); }
@Override public final void read(long pos, byte[] buf, int offset, int length) throws IOException { access(true, pos, buf, offset, length); }
@Override public final void write(long pos, long ptr, int offset, int length) throws IOException { access(false, pos, ptr + offset, length); }
@Override public final void read(long pos, long ptr, int offset, int length) throws IOException { access(true, pos, ptr + offset, length); }
@Override public final void write(long pos, long ptr, int offset, int length) throws IOException { access(false, pos, ptr + offset, length); }
@Override public final void read(long pos, byte[] buf, int offset, int length) throws IOException { access(true, pos, buf, offset, length); }
@Override public final void write(long pos, byte[] buf, int offset, int length) throws IOException { access(false, pos, buf, offset, length); }
@Override public final void read(long pos, long ptr, int offset, int length) throws IOException { access(true, pos, ptr + offset, length); }
@Override public final void write(long pos, byte[] buf, int offset, int length) throws IOException { access(false, pos, buf, offset, length); }
@Override public final void read(long pos, byte[] buf, int offset, int length) throws IOException { access(true, pos, buf, offset, length); }
@Override public final void write(long pos, ByteBuffer bb) throws IOException { access(false, pos, bb); }
private void access(boolean read, long pos, long ptr, int length) throws IOException { if (length > 0) { access(read, pos, DirectAccess.ref(ptr, length)); } }
private void access(boolean read, long pos, long ptr, int length) throws IOException { if (length > 0) { access(read, pos, DirectAccess.ref(ptr, length)); } }
private void access(boolean read, long pos, long ptr, int length) throws IOException { if (length > 0) { access(read, pos, DirectAccess.ref(ptr, length)); } }