get_bit_at


Description:

public bool get_bit_at (uint offset, uint8[] data)

Gets the value of a bit in a byte array.

Essentially, this is using a byte array as a bit array. For example, if offset is 11, it will return the 3rd bit of the 2nd byte.

Parameters:

offset

The offset in bits.

data

The byte array.

Returns:

true if the bit at the specified offset if set.