MCPcopy Create free account
hub / github.com/crazytuzi/UnrealCSharp / NewString

Method NewString

Script/Interop/Bridge/StringBridge.cs:8–17  ·  view source on GitHub ↗
(byte* InText)

Source from the content-addressed store, hash-verified

6 public static unsafe class StringBridge
7 {
8 [UnmanagedCallersOnly]
9 public static nint NewString(byte* InText)
10 {
11 if (InText != null)
12 {
13 return HandleData.AllocImplementation(Marshal.PtrToStringUTF8((nint)InText)!);
14 }
15
16 return 0;
17 }
18
19 [UnmanagedCallersOnly]
20 public static int GetString(nint InHandle, char* InBuffer, int InSize)

Callers

nothing calls this directly

Calls 1

AllocImplementationMethod · 0.80

Tested by

no test coverage detected