コード例 #1
0
        private static void *__CopyValue(global::NitraLibSodium.Hash.Sha256State.__Internal native)
        {
            var ret = Marshal.AllocHGlobal(sizeof(global::NitraLibSodium.Hash.Sha256State.__Internal));

            *(global::NitraLibSodium.Hash.Sha256State.__Internal *)ret = native;
            return(ret.ToPointer());
        }
コード例 #2
0
 private Sha256State(global::NitraLibSodium.Hash.Sha256State.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance           = true;
     NativeToManagedMap[__Instance] = this;
 }
コード例 #3
0
 internal static global::NitraLibSodium.Hash.Sha256State __CreateInstance(global::NitraLibSodium.Hash.Sha256State.__Internal native, bool skipVTables = false)
 {
     return(new global::NitraLibSodium.Hash.Sha256State(native, skipVTables));
 }