BinaryList extension

A collection of binary methods to be applied to any List<int> instance.

on

Methods

bitChunk(int index, int left, int size) int
Returns BinaryInt.bitChunk applied to the index-th int.
bitRange(int index, int left, int right) int
Returns BinaryInt.bitRange applied to the index-th int.
clearBit(int index, int n) int
Returns BinaryInt.clearBit applied to the index-th int.
countSetBits(int index, int bitWidth) int
Returns the index-th int with BinaryInt.countSetBits applied.
getBit(int index, int n) int
Returns BinaryInt.getBit applied to the index-th int.
isClear(int index, int n) bool
Returns BinaryInt.isClear applied to the index-th int.
isSet(int index, int n) bool
Returns BinaryInt.isSet applied to the index-th int.
replaceBitRange(int index, int left, int right, int bits) int
Returns BinaryInt.replaceBitRange applied to the index-th int.
rotateRightShift(int index, int amount, int bitWidth) int
Returns the index-th int with BinaryInt.rotateRightShift applied.
setBit(int index, int n) int
Returns BinaryInt.setBit applied to the index-th int.
signExtend(int index, int startSize, int endSize) int
Returns the index-th int with BinaryInt.signExtend applied.
toBits() int
Converts a list of individual bytes to bits represented as an int.
toggleBit(int index, int n, [bool? v]) int
Returns BinaryInt.toggleBit applied to the index-th int.