We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da36f1b commit c2a74b6Copy full SHA for c2a74b6
src/lib/sodium/Arithmetic.hxx
@@ -0,0 +1,15 @@
1
+// SPDX-License-Identifier: BSD-2-Clause
2
+// author: Max Kellermann <max.kellermann@gmail.com>
3
+
4
+#pragma once
5
6
+#include <sodium/utils.h>
7
8
+#include <cstddef> // for std::byte
9
+#include <span>
10
11
+inline void
12
+sodium_increment(std::span<std::byte> n) noexcept
13
+{
14
+ sodium_increment(reinterpret_cast<unsigned char *>(n.data()), n.size());
15
+}
0 commit comments