コード例 #1
0
 public Implementation(global::NitraLibSodium.Randombytes.Implementation _0)
 {
     __Instance                     = Marshal.AllocHGlobal(sizeof(global::NitraLibSodium.Randombytes.Implementation.__Internal));
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
     *((global::NitraLibSodium.Randombytes.Implementation.__Internal *)__Instance) = *((global::NitraLibSodium.Randombytes.Implementation.__Internal *)_0.__Instance);
 }
コード例 #2
0
        public static int SetImplementation(global::NitraLibSodium.Randombytes.Implementation impl)
        {
            var __arg0 = ReferenceEquals(impl, null) ? global::System.IntPtr.Zero : impl.__Instance;
            var __ret  = __Internal.SetImplementation(__arg0);

            return(__ret);
        }