Represents a string value. More...
Public Member Functions | |
| T5_StringUTF8 (string text) | |
| void | Dispose () |
| Safely disposes of this T5_StringUTF8 and any unmanaged memory allocated during its construction. | |
Static Public Member Functions | |
| static implicit | operator string (T5_StringUTF8 t5_StringUTF8) |
| static implicit | operator T5_StringUTF8 (string text) |
Static Private Member Functions | |
| static string | ToString (T5_StringUTF8 t5_StringUTF8) |
Private Attributes | |
| UInt32 | maxBufferSize |
| UInt32 | length |
| IntPtr | pStringBytesUTF8 |
Represents a string value.
This struct exists primarily to guarantee a common memory layout when marshaling string values to/from the native plugin. Note that it implements IDisposable, and that it should be wrapped in a "using" statement/block to avoid leaking memory.
Definition at line 410 of file NativePlugin.cs.
| TiltFive.T5_StringUTF8.T5_StringUTF8 | ( | string | text | ) |
Definition at line 416 of file NativePlugin.cs.
References TiltFive.T5_StringUTF8.length, TiltFive.T5_StringUTF8.maxBufferSize, and TiltFive.T5_StringUTF8.pStringBytesUTF8.
| void TiltFive.T5_StringUTF8.Dispose | ( | ) |
Safely disposes of this T5_StringUTF8 and any unmanaged memory allocated during its construction.
Definition at line 464 of file NativePlugin.cs.
References TiltFive.T5_StringUTF8.pStringBytesUTF8.
Referenced by TiltFive.Glasses.GlassesCore.TryGetFriendlyName().
|
static |
|
static |
|
staticprivate |
Definition at line 441 of file NativePlugin.cs.
References TiltFive.T5_StringUTF8.length, and TiltFive.T5_StringUTF8.pStringBytesUTF8.
|
private |
Definition at line 413 of file NativePlugin.cs.
Referenced by TiltFive.T5_StringUTF8.T5_StringUTF8(), and TiltFive.T5_StringUTF8.ToString().
|
private |
Definition at line 412 of file NativePlugin.cs.
Referenced by TiltFive.T5_StringUTF8.T5_StringUTF8().
|
private |
Definition at line 414 of file NativePlugin.cs.
Referenced by TiltFive.T5_StringUTF8.Dispose(), TiltFive.T5_StringUTF8.T5_StringUTF8(), and TiltFive.T5_StringUTF8.ToString().