// return true if the bit at index is 1, otherwise return false
return true if the bit at index is 1, otherwise return false
// return true if the bit at index is 1 otherwise return false
func (bs Bits) Bit(index BitIndex) bool {
	bytePos := index.BytePos()
	if bytePos >= len(bs) {
		return false
	}
	bitPos := index.BitPos()
	return (bs[bytePos]>>(7-bitPos))&0x1 == 0x1
}
func ( bs Bits ) Bit ( index BitIndex ) bool { bytePos := index . BytePos ( ) if bytePos >= len ( bs ) { return false } bitPos := index . BitPos ( ) return ( bs [ bytePos ] >> ( 7 - bitPos ) ) & 0x1 == 0x1 }
return true if the bit at index is 1, otherwise return false
return true if the bit at index is 1 otherwise return false