summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/varint.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/varint.h')
-rw-r--r--fs/bcachefs/varint.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/bcachefs/varint.h b/fs/bcachefs/varint.h
new file mode 100644
index 0000000000..92a182fb3d
--- /dev/null
+++ b/fs/bcachefs/varint.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _BCACHEFS_VARINT_H
+#define _BCACHEFS_VARINT_H
+
+int bch2_varint_encode(u8 *, u64);
+int bch2_varint_decode(const u8 *, const u8 *, u64 *);
+
+int bch2_varint_encode_fast(u8 *, u64);
+int bch2_varint_decode_fast(const u8 *, const u8 *, u64 *);
+
+#endif /* _BCACHEFS_VARINT_H */