@Override public RandomDataInput bytes() { if (!bsInit) { bs.writeLong(0, instance); bsInit = true; } return bs; }
@Override public void setValue2(long value) { bytes.writeLong(offset + 8, value); }
@Override public void setValueAt(long index, long value) throws IllegalArgumentException, BufferOverflowException { bytes.writeLong(VALUES + offset + (index << 3), value); }
@Override public void set(BytesStore bytes, long index, long value) { bytes.writeLong(index << 3, value); }
@Override public void setValue(long value) { bytes.writeLong(offset, value); }
@Override public void setDataStoreSize(long _dataStoreSize) { if (_dataStoreSize < 0) { throw new IllegalArgumentException("_dataStoreSize should be in [0, 9223372036854775807] range, " + _dataStoreSize + " is given"); } bs.writeLong(offset + 17, _dataStoreSize); }
@Override public void setDataStoreSize(long _dataStoreSize) { if (_dataStoreSize < 0) { throw new IllegalArgumentException("_dataStoreSize should be in [0, 9223372036854775807] range, " + _dataStoreSize + " is given"); } bs.writeLong(offset + 17, _dataStoreSize); }
@NotNull @Override public Bytes<Underlying> writeLong(long offset, long i) throws BufferOverflowException { writeCheckOffset(offset, 8); bytesStore.writeLong(offset, i); return this; }
@Override public long addDataStoreSize(long addition) { long oldDataStoreSize = bs.readLong(offset + 17); long newDataStoreSize = oldDataStoreSize + addition; if (newDataStoreSize < 0) { throw new IllegalStateException("bs.readLong(offset + 17) should be in [0, 9223372036854775807] range, the value was " + oldDataStoreSize + ", + " + addition + " = " + newDataStoreSize + " out of the range"); } bs.writeLong(offset + 17, newDataStoreSize); return newDataStoreSize; }
@NotNull @Override public Bytes<Underlying> prewriteLong(long l) throws BufferOverflowException { long offset = prewriteOffsetPositionMoved(8); bytesStore.writeLong(offset, l); return this; }
@NotNull @Override public Bytes<Underlying> writeLongAdv(long i64, int advance) throws BufferOverflowException { long offset = writeOffsetPositionMoved(8, advance); bytesStore.writeLong(offset, i64); return this; }
@NotNull @Override public Bytes<Underlying> writeLong(long i64) throws BufferOverflowException { long offset = writeOffsetPositionMoved(8L, 8L); bytesStore.writeLong(offset, i64); return this; }
@Override public void setFirstFreeTierIndex(long _firstFreeTierIndex) { if (_firstFreeTierIndex < 0 || _firstFreeTierIndex > 1099511627775L) { throw new IllegalArgumentException("_firstFreeTierIndex should be in [0, 1099511627775] range, " + _firstFreeTierIndex + " is given"); } bs.writeLong(offset + 3, ((bs.readLong(offset + 3)) & 0xFFFFFF0000000000L) | (_firstFreeTierIndex)); }
@NotNull @Override public Bytes<Underlying> writeLong(long i64) throws BufferOverflowException { long offset = writeOffsetPositionMoved(8); bytesStore.writeLong(offset, i64); return this; }
@Override public void setExtraTiersInUse(long _extraTiersInUse) { if (_extraTiersInUse < 0 || _extraTiersInUse > 1099511627775L) { throw new IllegalArgumentException("_extraTiersInUse should be in [0, 1099511627775] range, " + _extraTiersInUse + " is given"); } bs.writeLong(offset + 8, ((bs.readLong(offset + 8)) & 0xFFFFFF0000000000L) | (_extraTiersInUse)); }
@Override public void setFirstFreeTierIndex(long _firstFreeTierIndex) { if (_firstFreeTierIndex < 0 || _firstFreeTierIndex > 1099511627775L) { throw new IllegalArgumentException("_firstFreeTierIndex should be in [0, 1099511627775] range, " + _firstFreeTierIndex + " is given"); } bs.writeLong(offset + 3, ((bs.readLong(offset + 3)) & 0xFFFFFF0000000000L) | (_firstFreeTierIndex)); }
@Override public void setExtraTiersInUse(long _extraTiersInUse) { if (_extraTiersInUse < 0 || _extraTiersInUse > 1099511627775L) { throw new IllegalArgumentException("_extraTiersInUse should be in [0, 1099511627775] range, " + _extraTiersInUse + " is given"); } bs.writeLong(offset + 8, ((bs.readLong(offset + 8)) & 0xFFFFFF0000000000L) | (_extraTiersInUse)); }
@Override public long addDataStoreSize(long addition) { long oldDataStoreSize = bs.readLong(offset + 17); long newDataStoreSize = oldDataStoreSize + addition; if (newDataStoreSize < 0) { throw new IllegalStateException("bs.readLong(offset + 17) should be in [0, 9223372036854775807] range, the value was " + oldDataStoreSize + ", + " + addition + " = " + newDataStoreSize + " out of the range"); } bs.writeLong(offset + 17, newDataStoreSize); return newDataStoreSize; }
@Override public void readMarshallable(BytesIn bytes) { bs.writeInt(offset + 0, ((bs.readInt(offset + 0)) & 0xFF000000) | (bytes.readInt())); bs.writeLong(offset + 3, ((bs.readLong(offset + 3)) & 0xFFFFFF0000000000L) | (bytes.readLong())); bs.writeLong(offset + 8, ((bs.readLong(offset + 8)) & 0xFFFFFF0000000000L) | (bytes.readLong())); bs.writeInt(offset + 13, (int) (bytes.readLong())); bs.writeLong(offset + 17, bytes.readLong()); }
@Override public void readMarshallable(BytesIn bytes) { bs.writeInt(offset + 0, ((bs.readInt(offset + 0)) & 0xFF000000) | (bytes.readInt())); bs.writeLong(offset + 3, ((bs.readLong(offset + 3)) & 0xFFFFFF0000000000L) | (bytes.readLong())); bs.writeLong(offset + 8, ((bs.readLong(offset + 8)) & 0xFFFFFF0000000000L) | (bytes.readLong())); bs.writeInt(offset + 13, (int) (bytes.readLong())); bs.writeLong(offset + 17, bytes.readLong()); bs.writeInt(offset + 25, bytes.readInt()); bs.writeByte(offset + 29, (byte) (bytes.readInt())); for (int index = 0; index < 128; index++) { setModificationIteratorInitAt(index, bytes.readBoolean()); } }