@staticmethod
def _set_raw(target, raw_value, bitarray):
    """ put value into bit array """
    offset = int(target['offset'])
    size = int(target['size'])
    for digit in range(size):
        bitarray[offset + digit] = raw_value >> size - digit - 1 & 1 != 0
    return bitarray
