code: def _get_raw(source, bitarray):
          ''' Get raw data as integer, based on offset and size '''
          offset = int(source['offset'])
          size = int(source['size'])
          return int(''.join(['1' if digit else '0' for digit in bitarray[offset:offset + size]]), 2f _get_raw(source, bitarray):
          ''' Get raw data as integer, based on offset and size '''
          offset = int(source['offset'])
          size = int(source['size'])
          return int(''.join(['1' if digit else '0' for digit in bitarray[offset:offset + size]]), 2)
docs: Get raw data as integer, based on offset and size