public static int Final(global::NitraLibSodium.OneTimeAuth.Poly1305State state, byte[] @out) { var __arg0 = ReferenceEquals(state, null) ? global::System.IntPtr.Zero : state.__Instance; var __ret = __Internal.Final(__arg0, MarshalHelper.ByteArrayToIntPtr(@out)); return(__ret); }
public Poly1305State(global::NitraLibSodium.OneTimeAuth.Poly1305State _0) { __Instance = Marshal.AllocHGlobal(sizeof(global::NitraLibSodium.OneTimeAuth.Poly1305State.__Internal)); __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; *((global::NitraLibSodium.OneTimeAuth.Poly1305State.__Internal *)__Instance) = *((global::NitraLibSodium.OneTimeAuth.Poly1305State.__Internal *)_0.__Instance); }
public static int Update(global::NitraLibSodium.OneTimeAuth.Poly1305State state, byte[] @in, ulong inlen) { var __arg0 = ReferenceEquals(state, null) ? global::System.IntPtr.Zero : state.__Instance; var __ret = __Internal.Update(__arg0, MarshalHelper.ByteArrayToIntPtr(@in), inlen); return(__ret); }