예제 #1
0
        private static void *_CopyValue(Foundation.ATStringUnsafe._Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(Foundation.ATStringUnsafe._Internal));

            *(Foundation.ATStringUnsafe._Internal *)ret = native;
            return(ret.ToPointer());
        }
예제 #2
0
 private ATStringUnsafe(Foundation.ATStringUnsafe._Internal native, bool skipVTables = false)
     : this(_CopyValue(native), skipVTables)
 {
     _ownsNativeInstance           = true;
     NativeToManagedMap[_Instance] = this;
 }
예제 #3
0
 internal static Foundation.ATStringUnsafe _CreateInstance(Foundation.ATStringUnsafe._Internal native, bool skipVTables = false)
 {
     return(new Foundation.ATStringUnsafe(native, skipVTables));
 }