Class SingletonBitArray

java.lang.Object
ac.boar.anticheat.util.geyser.SingletonBitArray
All Implemented Interfaces:
BitArray

public class SingletonBitArray extends Object implements BitArray
  • Field Details

  • Method Details

    • set

      public void set(int index, int value)
      Specified by:
      set in interface BitArray
    • get

      public int get(int index)
      Specified by:
      get in interface BitArray
    • size

      public int size()
      Specified by:
      size in interface BitArray
    • writeSizeToNetwork

      public void writeSizeToNetwork(io.netty.buffer.ByteBuf buffer, int size)
      Description copied from interface: BitArray
      Overridden if the bit array implementation does not require size.
      Specified by:
      writeSizeToNetwork in interface BitArray
    • words

      public int[] words()
      Specified by:
      words in interface BitArray
    • version

      public BitArrayVersion version()
      Specified by:
      version in interface BitArray
    • copy

      public SingletonBitArray copy()
      Specified by:
      copy in interface BitArray