Add SnappyEncoder/Decoder

The encoder/decoder should work. Haven't actually hooked it into the log
namer yet, though.

Change-Id: Id20be8161d46fe080f89eee8032103977574e7ad
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/aos/events/logging/crc32.h b/aos/events/logging/crc32.h
new file mode 100644
index 0000000..7d21704
--- /dev/null
+++ b/aos/events/logging/crc32.h
@@ -0,0 +1,11 @@
+#include "absl/types/span.h"
+
+namespace aos {
+
+uint32_t ComputeCrc32(const absl::Span<uint8_t> data);
+
+uint32_t AccumulateCrc32(
+    const absl::Span<uint8_t> data,
+    std::optional<uint32_t> current_checksum = std::nullopt);
+
+}  // namespace aos