Add an interface for bspatch reader
Add a wrapper class to separate the patch read from data stream
decompression. Therefore, bspatch will be able to process the patch
that is compressed with various tools.
Test: unittest pass
Change-Id: I5214e0451bde80366e8a70b960703afb2b2a7d97
diff --git a/utils.h b/utils.h
new file mode 100644
index 0000000..1ee57c7
--- /dev/null
+++ b/utils.h
@@ -0,0 +1,16 @@
+// Copyright 2017 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef _BSDIFF_UTILS_H_
+#define _BSDIFF_UTILS_H_
+
+#include <stdint.h>
+
+namespace bsdiff {
+
+int64_t ParseInt64(const uint8_t* buf);
+
+} // namespace bsdiff
+
+#endif