Method CreateConstantString
CreateConstantString(LazyEncodedString)
Create a constant data string value
ConstantDataArray CreateConstantString(LazyEncodedString value)
Parameters
value
LazyEncodedStringstring to convert into an LLVM constant value
Returns
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(LazyEncodedString, bool) overload to specify the intended behavior.
CreateConstantString(LazyEncodedString, bool)
Create a constant data string value
ConstantDataArray CreateConstantString(LazyEncodedString value, bool nullTerminate)
Parameters
value
LazyEncodedStringstring to convert into an LLVM constant value
nullTerminate
boolflag to indicate if the string should include a null terminator
Returns
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