예제 #1
0
파일: Words.cs 프로젝트: qntnt/platformer
 public NativeString512(ref NativeString4096 source)
 {
     Length = 0;
     unsafe
     {
         CopyFrom(source.GetUnsafePtr(), source.Length);
     }
 }
예제 #2
0
        public NativeString64(ref NativeString4096 source)
        {
            Length = source.Length;
            unsafe
            {
                fixed(uint *b = buffer)
                {
                    var c = (char *)b;

                    source.CopyTo(c, MaxLength);
                }
            }
        }