GString

gdext.builtin.GString$package.GString
object GString

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
GString.type

Members list

Value members

Concrete methods

def from(value: String, dest: GDExtensionStringPtr): GString

Construct a Godot String from a Scala String into caller storage. The UTF-16 code units are copied straight across (no charset encoder), through a stack buffer for strings up to StackChars units, so the conversion allocates nothing on the Scala heap.

Construct a Godot String from a Scala String into caller storage. The UTF-16 code units are copied straight across (no charset encoder), through a stack buffer for strings up to StackChars units, so the conversion allocates nothing on the Scala heap.

Attributes

Wrap an existing engine String pointer without copying.

Wrap an existing engine String pointer without copying.

Attributes

inline def scope[R](value: String)(body: GString => R): R

Run body with a stack-allocated Godot String built from value; the String is destroyed on exit.

Run body with a stack-allocated Godot String built from value; the String is destroyed on exit.

Attributes

Extensions

Extensions

extension (s: GString)
def destroy(): Unit

Release the underlying Godot String's reference.

Release the underlying Godot String's reference.

Attributes

def toScala: String

Decode this Godot String into a Scala String.

Decode this Godot String into a Scala String.

Attributes