Table of Contents

Method CreateConstantString

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

CreateConstantString(LazyEncodedString)

Create a constant data string value

ConstantDataArray CreateConstantString(LazyEncodedString value)

Parameters

value LazyEncodedString

string to convert into an LLVM constant value

Returns

ConstantDataArray

new 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(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 LazyEncodedString

string to convert into an LLVM constant value

nullTerminate bool

flag to indicate if the string should include a null terminator

Returns

ConstantDataArray

new 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