Пример #1
0
        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();
        }
Пример #2
0
        public static void EnforceNullTermination(ref NativeString A)
        {
            if (!A[A.Length - 1].Equals('\0'))
            {
                A.Add('\0');
            }

            return;
        }