 | ContextCreateConstantString Method (String, Boolean) |
[This is preliminary documentation and is subject to change.]
Create a constant data string value
Namespace:
Llvm.NET
Assembly:
Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntaxpublic ConstantDataArray CreateConstantString(
string value,
bool nullTerminate
)
Parameters
- value
- Type: SystemString
string to convert into an LLVM constant value - nullTerminate
- Type: SystemBoolean
flag to indicate if the string should include a null terminator
Return Value
Type:
ConstantDataArraynew
ConstantDataArray
Remarks
This converts the string to ANSI form and creates an LLVM constant array of i8
characters for the data without any terminating null character.
See Also