Method CreateConstantString
CreateConstantString(String)
Create a constant data string value
Declaration
public ConstantDataArray CreateConstantString(string value)
Parameters
public ConstantDataArray CreateConstantString(string value)
String | value | string to convert into an LLVM constant value |
Returns
ConstantDataArray |
Remarks
This converts the string to ANSI form and creates an LLVM constant array of i8 characters for the data with a terminating null character. To control the enforcement of a terminating null character, use the CreateConstantString(String, Boolean) overload to specify the intended behavior.
CreateConstantString(String, Boolean)
Create a constant data string value
Declaration
public ConstantDataArray CreateConstantString(string value, bool nullTerminate)
Parameters
public ConstantDataArray CreateConstantString(string value, bool nullTerminate)
String | value | string to convert into an LLVM constant value |
Boolean | nullTerminate | flag to indicate if the string should include a null terminator |
Returns
ConstantDataArray |
Remarks
This converts the string to ANSI form and creates an LLVM constant array of i8
characters for the data. Enforcement of a null terminator depends on the value of nullTerminate