Interface BitStorage

All Known Implementing Classes:
SimpleBitStorage, ZeroBitStorage

public interface BitStorage
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    get(int pIndex)
    Gets the entry at the given index
    void
    getAll(IntConsumer pConsumer)
     
    int
    getAndSet(int pIndex, int pValue)
     
    int
     
    long[]
     
    int
     
    void
    set(int pIndex, int pValue)
    Sets the entry at the given location to the given value
    void
    unpack(int[] pArray)
     
  • Method Details

    • getAndSet

      int getAndSet(int pIndex, int pValue)
    • set

      void set(int pIndex, int pValue)
      Sets the entry at the given location to the given value
    • get

      int get(int pIndex)
      Gets the entry at the given index
    • getRaw

      long[] getRaw()
    • getSize

      int getSize()
    • getBits

      int getBits()
    • getAll

      void getAll(IntConsumer pConsumer)
    • unpack

      void unpack(int[] pArray)
    • copy

      BitStorage copy()