Struct ImString
Unsafe representation of a string.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: InitialPrefabs.NimGui.Text
Assembly: InitialPrefabs.ImGui.dll
Syntax
public struct ImString
Constructors
ImString(Char*, Int32)
Allows passing a pointer and length. This is generally used in conjunction with the TextBuffer.
Declaration
public ImString(char *ptr, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Char* | ptr | |
| System.Int32 | length |
ImString(String)
Pins a string using a fixed statement and stores the pointer to the head and stores the string's length.
Declaration
public ImString(string contents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | contents |
Fields
Length
Declaration
public readonly ushort Length
Field Value
| Type | Description |
|---|---|
| System.UInt16 |
Properties
Item[Int32]
Declaration
public readonly ref char this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type | Description |
|---|---|
| System.Char |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.ValueType.ToString()