def frombytes(self, bytes, offset=0):
        """Load data from array or list of bytes.
        Similar to loadbin() method but works directly with iterable bytes.
        """
        for b in bytes:
            self._buf[offset] = b
            offset += 1
Load data from array or list of bytes.
        Similar to loadbin() method but works directly with iterable bytes.