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