예제 #1
0
  @Override
  @ForceInline
  public void write(long offsetInRDO, @NotNull ByteBuffer bytes, int offset, int length) {
    if (bytes.isDirect()) {
      memory.copyMemory(((DirectBuffer) bytes).address(), address + translate(offsetInRDO), length);

    } else {
      memory.copyMemory(bytes.array(), offset, address + translate(offsetInRDO), length);
    }
  }
예제 #2
0
 @NotNull
 @Override
 @ForceInline
 public NativeBytesStore<Underlying> write(
     long offsetInRDO, byte[] bytes, int offset, int length) {
   memory.copyMemory(bytes, offset, address + translate(offsetInRDO), length);
   return this;
 }