Exemple #1
0
        private static void *__CopyValue(global::Std.CharTraits.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(global::Std.CharTraits.__Internal));

            *(global::Std.CharTraits.__Internal *)ret = native;
            return(ret.ToPointer());
        }
Exemple #2
0
 private CharTraits(global::Std.CharTraits.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
Exemple #3
0
 internal static global::Std.CharTraits <_CharT> __CreateInstance(global::Std.CharTraits.__Internal native, bool skipVTables = false)
 {
     return(new global::Std.CharTraits <_CharT>(native, skipVTables));
 }