"String" (Compiled Type)

"String"

represents a string type specifier.

Details

  • "String" can be used in Typed and related constructs to specify a type.

Properties

  • The characters stored in a "String" type value are the same as those in a String expression.

Constructors

  • CreateTypeInstance["String",cstr,len] creates a string from a C string cstr with length len. cstr can have type "CString" or "Managed"::["CString"].
  • CreateTypeInstance["String",cstr] creates a string from a null-terminated C string cstr.

Conversions

    Expressions

  • "String" objects can be converted to and from String expressions.
  • "CString"

  • Strings can be cast to "Managed"["CString"] objects.

Examples

Basic Examples  (1)

"String" can be used as input and output from a CompiledCodeFunction: