BinaryInt16List extension

A collection of binary methods to be applied to elements of Int16List.

The methods here are roughly the same as those on BinaryInt, except that they operate on an index of the underlying list, and infer the length property based on the data type of the underlying list (i.e. Int16List has a length of 16).

See BinaryList for more extension methods that operate on any List<int>.

on

Methods

countSetBits(int index) int
Returns BinaryInt.countSetBits applied to the index-th int.
getBoxed(int index) Int16
Returns the index-th int boxed as a Int16.
msb(int index) bool
Returns BinaryInt.msb applied to the index-th int.
signedRightShift(int index, int n) int
Returns the index-th int right-shifted by n. Returns the index-th int right-shifted by n.