def _to_int(s): """Computes the integer value of a raw byte string.""" value = 0 for offset, c in enumerate(iterbytes(s[::-1])): value += c << offset * 8 return value