#NEWLINE# @ staticmethod #NEWLINE# def stringz( string ) : #NEWLINE# #INDENT# n = ( len ( string ) + 1 ) #NEWLINE# buf = bytearray ( ( ' ' * n ) . encode ( 'ascii' ) ) #NEWLINE# buf [ ( - 1 ) ] = 0 #NEWLINE# buf [ : ( - 1 ) ] = string . encode ( 'utf-8' ) #NEWLINE# return ir . Constant ( ir . ArrayType ( ir . IntType ( 8 ) , n ) , buf )