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 @@
71 
72  bool empty() const;
73 
-
74  private:
-
75  const char* data_;
-
76  const char* end_;
-
77 };
-
78 
-
79 } // namespace gs
+
74  void reset(const char* ptr, size_t size);
+
75 
+
76  private:
+
77  const char* data_;
+
78  const char* end_;
+
79 };
80 
-
81 #endif // GRAPHSCOPE_APP_UTILS_H_
+
81 } // namespace gs
+
82 
+
83 #endif // GRAPHSCOPE_APP_UTILS_H_
gs::Encoder::clear
void clear()
Definition: app_utils.cc:82
-
gs::Decoder::data_
const char * data_
Definition: app_utils.h:75
+
gs::Decoder::data_
const char * data_
Definition: app_utils.h:77
gs::Encoder::put_string
void put_string(const std::string &v)
Definition: app_utils.cc:66
gs::Encoder::put_long_at
void put_long_at(size_t pos, int64_t v)
Definition: app_utils.cc:34
gs::Encoder::put_string_view
void put_string_view(const std::string_view &v)
Definition: app_utils.cc:74
gs::Decoder::get_long
int64_t get_long()
Definition: app_utils.cc:100
-
gs::Decoder::end_
const char * end_
Definition: app_utils.h:76
+
gs::Decoder::end_
const char * end_
Definition: app_utils.h:78
gs::Encoder::skip_byte
size_t skip_byte()
Definition: app_utils.cc:56
gs
Definition: mutable_csr.cc:21
gs::Decoder::get_int
int get_int()
Definition: app_utils.cc:94
@@ -160,6 +162,7 @@
gs::Encoder::put_int
void put_int(int v)
Definition: app_utils.cc:38
gs::Encoder::buf_
std::vector< char > & buf_
Definition: app_utils.h:54
gs::Encoder::skip_int
size_t skip_int()
Definition: app_utils.cc:44
+
gs::Decoder::reset
void reset(const char *ptr, size_t size)
Definition: app_utils.cc:119
gs::Decoder::data
const char * data() const
Definition: app_utils.cc:115
gs::Encoder::Encoder
Encoder(std::vector< char > &buf)
Definition: app_utils.h:27
gs::Encoder::put_byte
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::Decoderinline + reset(const char *ptr, size_t size)gs::Decoder + ~Decoder()gs::Decoderinline