예제 #1
0
 @NotNull
 @Override
 @ForceInline
 public NativeBytesStore<Underlying> writeInt(long offset, int i32) {
   memory.writeInt(address + translate(offset), i32);
   return this;
 }
예제 #2
0
 public static void entries(long address, long entries) {
   if (entries >= (1L << 32)) {
     throw new IllegalStateException(
         "tier entries overflow: up to "
             + UNSIGNED_INT_MASK
             + " supported, "
             + entries
             + " given");
   }
   memory.writeInt(address + ENTRIES_OFFSET, (int) entries);
 }
예제 #3
0
 public static void deleted(long address, long deleted) {
   if (deleted >= (1L << 32)) {
     throw new IllegalStateException(
         "tier deleted entries count overflow: up to "
             + UNSIGNED_INT_MASK
             + " supported, "
             + deleted
             + " given");
   }
   memory.writeInt(address + DELETED_OFFSET, (int) deleted);
 }
예제 #4
0
 public static void tier(long address, int tier) {
   memory.writeInt(address + TIER_OFFSET, tier);
 }
예제 #5
0
 public static void segmentIndex(long address, int segmentIndex) {
   memory.writeInt(address + SEGMENT_INDEX_OFFSET, segmentIndex);
 }