コード例 #1
0
 @Override
 @ForceInline
 public void write(long offsetInRDO, ByteBuffer bytes, int offset, int length)
     throws BufferOverflowException {
   writeCheckOffset(offsetInRDO, length);
   bytesStore.write(offsetInRDO, bytes, offset, length);
 }
コード例 #2
0
 @NotNull
 @Override
 @ForceInline
 public Bytes<Underlying> prewrite(byte[] bytes) {
   long offsetInRDO = prewriteOffsetPositionMoved(bytes.length);
   bytesStore.write(offsetInRDO, bytes);
   return this;
 }
コード例 #3
0
 @NotNull
 @Override
 @ForceInline
 public Bytes<Underlying> write(byte[] bytes, int offset, int length) {
   long offsetInRDO = writeOffsetPositionMoved(length);
   bytesStore.write(offsetInRDO, bytes, offset, length);
   return this;
 }
コード例 #4
0
 @NotNull
 @Override
 @ForceInline
 public Bytes<Underlying> write(@NotNull ByteBuffer buffer) {
   bytesStore.write(writePosition, buffer, buffer.position(), buffer.limit());
   writePosition += buffer.remaining();
   assert writePosition <= writeLimit();
   return this;
 }
コード例 #5
0
 @NotNull
 @Override
 @ForceInline
 public Bytes<Underlying> write(long offsetInRDO, RandomDataInput bytes, long offset, long length)
     throws IORuntimeException, BufferUnderflowException, BufferOverflowException {
   writeCheckOffset(offsetInRDO, length);
   bytesStore.write(offsetInRDO, bytes, offset, length);
   return this;
 }
コード例 #6
0
 @NotNull
 @Override
 @ForceInline
 public Bytes<Underlying> write(long offsetInRDO, byte[] bytes, int offset, int length)
     throws BufferOverflowException {
   writeCheckOffset(offsetInRDO, length);
   bytesStore.write(offsetInRDO, bytes, offset, length);
   return this;
 }