From 6ed8f5151719fbc14ec0ac6d28a346d1f74cf2ca Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 2 Jan 2026 22:42:31 +0100 Subject: Initial commit --- src/u.hh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/u.hh (limited to 'src/u.hh') diff --git a/src/u.hh b/src/u.hh new file mode 100644 index 0000000..439d6dc --- /dev/null +++ b/src/u.hh @@ -0,0 +1,21 @@ +#ifndef U_HH +#define U_HH + +#include + +namespace u { + +enum class ReadError : uint8_t { + Invalid, // Invalid sequence + End, // At end (it == end) + Incomplete, // Too few bytes +}; + +enum class ReadErrorReplace : uint8_t { + End, // At end (it == end) + Incomplete, // Too few bytes +}; + +} // namespace u + +#endif // U_HH -- cgit v1.2.3-70-g09d2