Class BitfieldUtil
java.lang.Object
club.doki7.ffm.bits.BitfieldUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanreadBit(byte value, int bit) static booleanreadBit(int value, int bit) static booleanreadBit(short value, int bit) static booleanreadBit(@NotNull MemorySegment segment, int bit) static bytereadBits(byte value, int startBit, int endBit) static intreadBits(int value, int startBit, int endBit) static shortreadBits(short value, int startBit, int endBit) static intreadBits(@NotNull MemorySegment segment, int startBit, int endBit) static bytewriteBit(byte value, int bit, boolean bitValue) static intwriteBit(int value, int bit, boolean bitValue) static shortwriteBit(short value, int bit, boolean bitValue) static voidwriteBit(@NotNull MemorySegment segment, int bit, boolean bitValue) static bytewriteBits(byte value, int startBit, int endBit, byte bits) static intwriteBits(int value, int startBit, int endBit, int bits) static shortwriteBits(short value, int startBit, int endBit, short bits) static voidwriteBits(@NotNull MemorySegment segment, int startBit, int endBit, int bits)
-
Constructor Details
-
BitfieldUtil
public BitfieldUtil()
-
-
Method Details
-
readBit
-
readBits
@Unsigned public static int readBits(@NotNull @NotNull MemorySegment segment, @Unsigned int startBit, @Unsigned int endBit) -
writeBit
public static void writeBit(@NotNull @NotNull MemorySegment segment, @Unsigned int bit, boolean bitValue) -
writeBits
public static void writeBits(@NotNull @NotNull MemorySegment segment, @Unsigned int startBit, @Unsigned int endBit, @Unsigned int bits) -
readBit
-
readBit
-
readBit
-
readBits
-
readBits
-
readBits
-
writeBit
-
writeBit
-
writeBit
-
writeBits
-
writeBits
-
writeBits
-