summaryrefslogtreecommitdiffhomepage
path: root/serialize/packbits-impl.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-16 11:37:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-16 11:37:10 +0100
commite16c243d1cab4eb236fbd08d12dbce75aac94ddf (patch)
tree6c7c328a3f5570c4c269d9fcff2a1870c534a5df /serialize/packbits-impl.cpp
parentba069ff6c82f427d910a94c3f5e3dc06306c1ecc (diff)
ddd
Diffstat (limited to 'serialize/packbits-impl.cpp')
-rw-r--r--serialize/packbits-impl.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/serialize/packbits-impl.cpp b/serialize/packbits-impl.cpp
new file mode 100644
index 00000000..b7a4eefc
--- /dev/null
+++ b/serialize/packbits-impl.cpp
@@ -0,0 +1,11 @@
+#include "packbits-impl.hpp"
+#include "compat/exception.hpp"
+
+namespace floormat::Pack_impl {
+
+void throw_on_read_nonzero() noexcept(false)
+{
+ throw std::runtime_error{"extra bits in pack_read()"};
+}
+
+} // namespace floormat::Pack_impl