docs: def to_ubyte_array(barray):
      """Returns a c_ubyte_array filled with the given data of a bytearray or bytes"""
      bs = (ctypes.c_ubyte * len(barray))()
      pack_into('%ds' % len(barray), bs, 0, barray)
  
      return bs