Пример #1
0
 private static void* __CopyValue(BasicString.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(8);
     *(BasicString.__Internal*) ret = native;
     return ret.ToPointer();
 }
Пример #2
0
 private BasicString(BasicString.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Пример #3
0
 public static BasicString __CreateInstance(BasicString.__Internal native, bool skipVTables = false)
 {
     return new BasicString(native, skipVTables);
 }