toStringSymbol

Write read-only string to object file, create a local symbol for it. Makes a copy of str's contents, does not keep a reference to it.

  1. Symbol* toStringSymbol(const(char)* str, size_t len, size_t sz)
    extern (C++)
    toStringSymbol
    (
    const(char)* str
    ,
    size_t len
    ,
    size_t sz
    )
  2. Symbol* toStringSymbol(StringExp se)

Parameters

str
Type: const(char)*

string

len
Type: size_t

number of code units in string

sz
Type: size_t

number of bytes per code unit

Return Value

Type: Symbol*

Symbol

Meta