@Override public int getValue() { return bytes == null ? 0 : bytes.readInt(offset); }
@Override public int getCurrentCleanupSegmentIndex() { return bs.readInt(offset + 25); }
@Override public double get(BytesStore bytes, long index) { int i = bytes.readInt(index << 2); return i == Integer.MIN_VALUE ? Double.NaN : i / factor; }
@Override public long get(BytesStore bytes, long index) { int i = bytes.readInt(index << 2); return i == Integer.MIN_VALUE ? TimeSeries.LONG_NAN : i; }
@Override public double get(BytesStore bytes, long index) { int i = bytes.readInt(index << 2); return i == Integer.MIN_VALUE ? Double.NaN : i / factor; }
@Override public double get(BytesStore bytes, long index) { int i = bytes.readInt(index << 2); return i == Integer.MIN_VALUE ? Double.NaN : i / factor; }
@Override public double get(BytesStore bytes, long index) { int i = bytes.readInt(index << 2); return i == Integer.MIN_VALUE ? Double.NaN : i / factor; }
@Override public double get(BytesStore bytes, long index) { int i = bytes.readInt(index << 2); return i == Integer.MIN_VALUE ? Double.NaN : i / factor; }
@Override public long getSegmentHeadersOffset() { return (bs.readInt(offset + 13)) & 0xFFFFFFFFL; }
@Override public int getAllocatedExtraTierBulks() { return (bs.readInt(offset + 0)) & ((1 << 24) - 1); }
@Override public long getSegmentHeadersOffset() { return (bs.readInt(offset + 13)) & 0xFFFFFFFFL; }
@Override public int readInt() throws BufferUnderflowException { try { long offset = readOffsetPositionMoved(4); return bytesStore.readInt(offset); } catch (BufferUnderflowException e) { if (lenient) { return 0; } throw e; } }
@Override public void setAllocatedExtraTierBulks(int _allocatedExtraTierBulks) { if (_allocatedExtraTierBulks < 0 || _allocatedExtraTierBulks > 16777215) { throw new IllegalArgumentException("_allocatedExtraTierBulks should be in [0, 16777215] range, " + _allocatedExtraTierBulks + " is given"); } bs.writeInt(offset + 0, ((bs.readInt(offset + 0)) & 0xFF000000) | (_allocatedExtraTierBulks)); }
@Override public void setAllocatedExtraTierBulks(int _allocatedExtraTierBulks) { if (_allocatedExtraTierBulks < 0 || _allocatedExtraTierBulks > 16777215) { throw new IllegalArgumentException("_allocatedExtraTierBulks should be in [0, 16777215] range, " + _allocatedExtraTierBulks + " is given"); } bs.writeInt(offset + 0, ((bs.readInt(offset + 0)) & 0xFF000000) | (_allocatedExtraTierBulks)); }
@Override public int readInt(long offset) throws BufferUnderflowException { readCheckOffset(offset, 4, true); return bytesStore.readInt(offset); }
@Override public void bytesStore(@NotNull final BytesStore bytes, long offset, long length) { if (length != template.length) throw new IllegalArgumentException(length + " != " + template.length); // align for ARM long newOffset = roundUpTo8ByteAlign(offset); for (long i = offset; i < newOffset; i++) { bytes.writeByte(i, (byte) ' '); } super.bytesStore(bytes, newOffset, length); if (bytes.readInt(newOffset) == UNINITIALIZED) bytes.write(newOffset, template); }
@Override public void writeMarshallable(BytesOut bytes) { bytes.writeInt((bs.readInt(offset + 0)) & ((1 << 24) - 1)); bytes.writeLong((bs.readLong(offset + 3)) & ((1L << 40) - 1)); bytes.writeLong((bs.readLong(offset + 8)) & ((1L << 40) - 1)); bytes.writeLong((bs.readInt(offset + 13)) & 0xFFFFFFFFL); bytes.writeLong(bs.readLong(offset + 17)); }
@Override public void writeMarshallable(BytesOut bytes) { bytes.writeInt((bs.readInt(offset + 0)) & ((1 << 24) - 1)); bytes.writeLong((bs.readLong(offset + 3)) & ((1L << 40) - 1)); bytes.writeLong((bs.readLong(offset + 8)) & ((1L << 40) - 1)); bytes.writeLong((bs.readInt(offset + 13)) & 0xFFFFFFFFL); bytes.writeLong(bs.readLong(offset + 17)); bytes.writeInt(bs.readInt(offset + 25)); bytes.writeInt((bs.readByte(offset + 29)) & 0xFF); for (int index = 0; index < 128; index++) { bytes.writeBoolean(getModificationIteratorInitAt(index)); } }
@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()); } }