private void Start() { NativeString t1 = (NativeString)"Hello"; t1.Add(' '); NativeString t2 = (NativeString)"World"; t1 = t1 + t2; t2.Dispose(); t1.Add('!'); Debug.Log(t1); t1.Dispose(); }
public static void EnforceNullTermination(ref NativeString A) { if (!A[A.Length - 1].Equals('\0')) { A.Add('\0'); } return; }