void (int slotIndex, int segmentIndex) { Objects.checkIndex(slotIndex, segmentTableSize()); if (segmentIndex < 1 || segmentIndex > 0xFFFF) { throw new IllegalArgumentException("segmentIndex(=" + segmentIndex + ") must be in [1..0xFFFF]"); } headerBuffer.putShort(SEGMENTS_TABLE_OFFSET + slotIndex * Short.BYTES, (short)segmentIndex); }