Methods -> Libsodium on manual macros.

This commit is contained in:
Pieter-Jan Briers
2022-03-27 18:36:36 +02:00
parent 5fb83abe39
commit abe853722d
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
namespace SpaceWizards.Sodium.Interop;
public partial class Methods
public partial class Libsodium
{
public static ulong sodium_base64_ENCODED_LEN(ulong BIN_LEN, ulong VARIANT)
{
@@ -8,4 +8,4 @@ public partial class Methods
((((BIN_LEN) - ((BIN_LEN) / 3U) * 3U) | (((BIN_LEN) - ((BIN_LEN) / 3U) * 3U) >> 1)) & 1U) *
(4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((BIN_LEN) - ((BIN_LEN) / 3U) * 3U)))) + 1U);
}
}
}

View File

@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageId>SpaceWizards.Sodium.Interop</PackageId>
<Version>1.0.18-beta2</Version>
<Version>1.0.18-beta3</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>Native API binding for libsodium.</Description>
<NoWarn>CS1591</NoWarn>