def make_bytearray(buf):
 b = bytearray(buf)
 n = len(b)
 return ir.Constant(ir.ArrayType(ir.IntType(8), n), b)

def make_bytearray ( buf ) : b = bytearray ( buf ) n = len ( b ) return ir . Constant ( ir . ArrayType ( ir . IntType ( 8 ) , n ) , b )
make a byte array constant from *buf* .