Class MemoryIndex.SlicedIntBlockPool

    • Field Detail

      • NEXT_LEVEL_ARRAY

        private static final int[] NEXT_LEVEL_ARRAY
        An array holding the offset into the LEVEL_SIZE_ARRAY to quickly navigate to the next slice level.
      • LEVEL_SIZE_ARRAY

        private static final int[] LEVEL_SIZE_ARRAY
        An array holding the level sizes for int slices.
      • FIRST_LEVEL_SIZE

        private static final int FIRST_LEVEL_SIZE
        The first level size for new slices
    • Method Detail

      • assertSliceBuffer

        private static boolean assertSliceBuffer​(int[] buffer)
      • allocSlice

        private int allocSlice​(int[] slice,
                               int sliceOffset)
        Allocates a new slice from the given offset