Class BitfieldUtil

java.lang.Object
club.doki7.ffm.bits.BitfieldUtil

public final class BitfieldUtil extends Object
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    static boolean
    readBit(byte value, int bit)
     
    static boolean
    readBit(int value, int bit)
     
    static boolean
    readBit(short value, int bit)
     
    static boolean
    readBit(@NotNull MemorySegment segment, int bit)
     
    static byte
    readBits(byte value, int startBit, int endBit)
     
    static int
    readBits(int value, int startBit, int endBit)
     
    static short
    readBits(short value, int startBit, int endBit)
     
    static int
    readBits(@NotNull MemorySegment segment, int startBit, int endBit)
     
    static byte
    writeBit(byte value, int bit, boolean bitValue)
     
    static int
    writeBit(int value, int bit, boolean bitValue)
     
    static short
    writeBit(short value, int bit, boolean bitValue)
     
    static void
    writeBit(@NotNull MemorySegment segment, int bit, boolean bitValue)
     
    static byte
    writeBits(byte value, int startBit, int endBit, byte bits)
     
    static int
    writeBits(int value, int startBit, int endBit, int bits)
     
    static short
    writeBits(short value, int startBit, int endBit, short bits)
     
    static void
    writeBits(@NotNull MemorySegment segment, int startBit, int endBit, int bits)
     

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait