Class IntBlockPool.SliceWriter

    • Constructor Detail

    • Method Detail

      • reset

        public void reset​(int sliceOffset)
      • writeInt

        public void writeInt​(int value)
        Writes the given value into the slice and resizes the slice if needed
      • startNewSlice

        public int startNewSlice()
        starts a new slice and returns the start offset. The returned value should be used as the start offset to initialize a IntBlockPool.SliceReader.
      • getCurrentOffset

        public int getCurrentOffset()
        Returns the offset of the currently written slice. The returned value should be used as the end offset to initialize a IntBlockPool.SliceReader once this slice is fully written or to reset the this writer if another slice needs to be written.