diff --git a/flex/.clang-format b/flex/.clang-format
new file mode 100644
index 000000000000..157e15c08c9e
--- /dev/null
+++ b/flex/.clang-format
@@ -0,0 +1,13 @@
+BasedOnStyle: Google
+DerivePointerAlignment: false
+PointerAlignment: Left
+Cpp11BracedListStyle: true
+IndentCaseLabels: false
+AllowShortBlocksOnASingleLine: true
+AllowShortLoopsOnASingleLine: false
+AllowShortIfStatementsOnASingleLine: false
+Standard: 'Cpp11'
+SpaceAfterCStyleCast: true
+AlignAfterOpenBracket: Align
+SortIncludes: true
+IncludeBlocks: Preserve
diff --git a/flex/docs/html/app__utils_8h_source.html b/flex/docs/html/app__utils_8h_source.html
index 117bc4a75bc6..6d313c95aa83 100644
--- a/flex/docs/html/app__utils_8h_source.html
+++ b/flex/docs/html/app__utils_8h_source.html
@@ -129,22 +129,24 @@
-
-
-
-
-
-
+ 74 void reset(
const char* ptr,
size_t size);
+
+
+
+
+
- 81 #endif // GRAPHSCOPE_APP_UTILS_H_
+
+
+ 83 #endif // GRAPHSCOPE_APP_UTILS_H_
void clear()
Definition: app_utils.cc:82
-const char * data_
Definition: app_utils.h:75
+const char * data_
Definition: app_utils.h:77
void put_string(const std::string &v)
Definition: app_utils.cc:66
void put_long_at(size_t pos, int64_t v)
Definition: app_utils.cc:34
void put_string_view(const std::string_view &v)
Definition: app_utils.cc:74
int64_t get_long()
Definition: app_utils.cc:100
-const char * end_
Definition: app_utils.h:76
+const char * end_
Definition: app_utils.h:78
size_t skip_byte()
Definition: app_utils.cc:56
Definition: mutable_csr.cc:21
int get_int()
Definition: app_utils.cc:94
@@ -160,6 +162,7 @@
void put_int(int v)
Definition: app_utils.cc:38
std::vector< char > & buf_
Definition: app_utils.h:54
size_t skip_int()
Definition: app_utils.cc:44
+void reset(const char *ptr, size_t size)
Definition: app_utils.cc:119
const char * data() const
Definition: app_utils.cc:115
Encoder(std::vector< char > &buf)
Definition: app_utils.h:27
void put_byte(uint8_t v)
Definition: app_utils.cc:54
diff --git a/flex/docs/html/classgs_1_1Decoder-members.html b/flex/docs/html/classgs_1_1Decoder-members.html
index 67022e6569f0..a0ea4737b745 100644
--- a/flex/docs/html/classgs_1_1Decoder-members.html
+++ b/flex/docs/html/classgs_1_1Decoder-members.html
@@ -82,7 +82,8 @@
get_int() | gs::Decoder | |
get_long() | gs::Decoder | |
get_string() | gs::Decoder | |
- ~Decoder() | gs::Decoder | inline |
+ reset(const char *ptr, size_t size) | gs::Decoder | |
+ ~Decoder() | gs::Decoder | inline |