コード例 #1
0
        private static void *_CopyValue(Foundation.ATJSONParserUnsafe._Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(Foundation.ATJSONParserUnsafe._Internal));

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