YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/src/yb/util/jsonwriter.cc
Line
Count
Source (jump to first uncovered line)
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
//
18
// The following only applies to changes made to this file as part of YugaByte development.
19
//
20
// Portions Copyright (c) YugaByte, Inc.
21
//
22
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
23
// in compliance with the License.  You may obtain a copy of the License at
24
//
25
// http://www.apache.org/licenses/LICENSE-2.0
26
//
27
// Unless required by applicable law or agreed to in writing, software distributed under the License
28
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
29
// or implied.  See the License for the specific language governing permissions and limitations
30
// under the License.
31
//
32
#include "yb/util/jsonwriter.h"
33
34
#include <string>
35
36
#include <glog/logging.h>
37
#include <google/protobuf/message.h>
38
#include <rapidjson/prettywriter.h>
39
40
#include "yb/gutil/casts.h"
41
42
using google::protobuf::FieldDescriptor;
43
using google::protobuf::Message;
44
using google::protobuf::Reflection;
45
46
using std::string;
47
using std::stringstream;
48
using std::vector;
49
50
namespace yb {
51
52
// Adapter to allow RapidJSON to write directly to a stringstream.
53
// Since Squeasel exposes a stringstream as its interface, this is needed to avoid overcopying.
54
class UTF8StringStreamBuffer {
55
 public:
56
  typedef typename rapidjson::UTF8<>::Ch Ch;
57
  explicit UTF8StringStreamBuffer(std::stringstream* out);
58
  void Put(Ch c);
59
60
0
  void PutUnsafe(Ch c) { Put(c); }
61
15.5k
  void Flush() {}
62
 private:
63
  std::stringstream* out_;
64
};
65
66
// rapidjson doesn't provide any common interface between the PrettyWriter and
67
// Writer classes. So, we create our own pure virtual interface here, and then
68
// use JsonWriterImpl<T> below to make the two different rapidjson implementations
69
// correspond to this subclass.
70
class JsonWriterIf {
71
 public:
72
  virtual void Null() = 0;
73
  virtual void Bool(bool b) = 0;
74
  virtual void Int(int i) = 0;
75
  virtual void Uint(unsigned u) = 0;
76
  virtual void Int64(int64_t i64) = 0;
77
  virtual void Uint64(uint64_t u64) = 0;
78
  virtual void Double(double d) = 0;
79
  virtual void String(const char* str, size_t length) = 0;
80
  virtual void String(const char* str) = 0;
81
  virtual void String(const std::string& str) = 0;
82
83
  virtual void StartObject() = 0;
84
  virtual void EndObject() = 0;
85
  virtual void StartArray() = 0;
86
  virtual void EndArray() = 0;
87
88
15.5k
  virtual ~JsonWriterIf() {}
89
};
90
91
// Adapts the different rapidjson Writer implementations to our virtual
92
// interface above.
93
template<class T>
94
class JsonWriterImpl : public JsonWriterIf {
95
 public:
96
  explicit JsonWriterImpl(stringstream* out);
97
98
  void Null() override;
99
  void Bool(bool b) override;
100
  void Int(int i) override;
101
  void Uint(unsigned u) override;
102
  void Int64(int64_t i64) override;
103
  void Uint64(uint64_t u64) override;
104
  void Double(double d) override;
105
  void String(const char* str, size_t length) override;
106
  void String(const char* str) override;
107
  void String(const std::string& str) override;
108
109
  void StartObject() override;
110
  void EndObject() override;
111
  void StartArray() override;
112
  void EndArray() override;
113
114
 private:
115
  UTF8StringStreamBuffer stream_;
116
  T writer_;
117
  DISALLOW_COPY_AND_ASSIGN(JsonWriterImpl);
118
};
119
120
//
121
// JsonWriter
122
//
123
124
typedef rapidjson::PrettyWriter<UTF8StringStreamBuffer> PrettyWriterClass;
125
typedef rapidjson::Writer<UTF8StringStreamBuffer> CompactWriterClass;
126
127
15.5k
JsonWriter::JsonWriter(stringstream* out, Mode m) {
128
15.5k
  switch (m) {
129
15.5k
    case PRETTY:
130
15.5k
      impl_.reset(new JsonWriterImpl<PrettyWriterClass>(DCHECK_NOTNULL(out)));
131
15.5k
      break;
132
22
    case COMPACT:
133
22
      impl_.reset(new JsonWriterImpl<CompactWriterClass>(DCHECK_NOTNULL(out)));
134
22
      break;
135
15.5k
  }
136
15.5k
}
137
15.5k
JsonWriter::~JsonWriter() {
138
15.5k
}
139
0
void JsonWriter::Null() { impl_->Null(); }
140
2
void JsonWriter::Bool(bool b) { impl_->Bool(b); }
141
18
void JsonWriter::Int(int i) { impl_->Int(i); }
142
132k
void JsonWriter::Uint(unsigned u) { impl_->Uint(u); }
143
24.2M
void JsonWriter::Int64(int64_t i64) { impl_->Int64(i64); }
144
95.7M
void JsonWriter::Uint64(uint64_t u64) { impl_->Uint64(u64); }
145
4.92M
void JsonWriter::Double(double d) { impl_->Double(d); }
146
0
void JsonWriter::String(const char* str, size_t length) { impl_->String(str, length); }
147
230M
void JsonWriter::String(const char* str) { impl_->String(str); }
148
63.5M
void JsonWriter::String(const string& str) { impl_->String(str); }
149
82.0M
void JsonWriter::StartObject() { impl_->StartObject(); }
150
82.0M
void JsonWriter::EndObject() { impl_->EndObject(); }
151
661k
void JsonWriter::StartArray() { impl_->StartArray(); }
152
661k
void JsonWriter::EndArray() { impl_->EndArray(); }
153
154
// Specializations for common primitive metric types.
155
0
template<> void JsonWriter::Value(const bool& val) {
156
0
  Bool(val);
157
0
}
158
0
template<> void JsonWriter::Value(const int32_t& val) {
159
0
  Int(val);
160
0
}
161
132k
template<> void JsonWriter::Value(const uint32_t& val) {
162
132k
  Uint(val);
163
132k
}
164
8.21M
template<> void JsonWriter::Value(const int64_t& val) {
165
8.21M
  Int64(val);
166
8.21M
}
167
51.4M
template<> void JsonWriter::Value(const uint64_t& val) {
168
51.4M
  Uint64(val);
169
51.4M
}
170
0
template<> void JsonWriter::Value(const double& val) {
171
0
  Double(val);
172
0
}
173
0
template<> void JsonWriter::Value(const string& val) {
174
0
  String(val);
175
0
}
176
177
#if defined(__APPLE__)
178
0
template<> void JsonWriter::Value(const size_t& val) {
179
0
  Uint64(val);
180
0
}
181
#endif
182
183
4.92M
void JsonWriter::Protobuf(const Message& pb) {
184
4.92M
  const Reflection* reflection = pb.GetReflection();
185
4.92M
  vector<const FieldDescriptor*> fields;
186
4.92M
  reflection->ListFields(pb, &fields);
187
188
4.92M
  StartObject();
189
54.1M
  for (const FieldDescriptor* field : fields) {
190
54.1M
    String(field->name());
191
54.1M
    if (field->is_repeated()) {
192
27
      StartArray();
193
27
      auto field_size = reflection->FieldSize(pb, field);
194
82
      for (int i = 0; i < field_size; i++) {
195
55
        ProtobufRepeatedField(pb, field, i);
196
55
      }
197
27
      EndArray();
198
54.1M
    } else {
199
54.1M
      ProtobufField(pb, field);
200
54.1M
    }
201
54.1M
  }
202
4.92M
  EndObject();
203
4.92M
}
204
205
54.1M
void JsonWriter::ProtobufField(const Message& pb, const FieldDescriptor* field) {
206
54.1M
  const Reflection* reflection = pb.GetReflection();
207
54.1M
  switch (field->cpp_type()) {
208
10
    case FieldDescriptor::CPPTYPE_INT32:
209
10
      Int(reflection->GetInt32(pb, field));
210
10
      break;
211
15
    case FieldDescriptor::CPPTYPE_INT64:
212
15
      Int64(reflection->GetInt64(pb, field));
213
15
      break;
214
22
    case FieldDescriptor::CPPTYPE_UINT32:
215
22
      Uint(reflection->GetUInt32(pb, field));
216
22
      break;
217
44.3M
    case FieldDescriptor::CPPTYPE_UINT64:
218
44.3M
      Uint64(reflection->GetUInt64(pb, field));
219
44.3M
      break;
220
4.92M
    case FieldDescriptor::CPPTYPE_DOUBLE:
221
4.92M
      Double(reflection->GetDouble(pb, field));
222
4.92M
      break;
223
2
    case FieldDescriptor::CPPTYPE_FLOAT:
224
2
      Double(reflection->GetFloat(pb, field));
225
2
      break;
226
2
    case FieldDescriptor::CPPTYPE_BOOL:
227
2
      Bool(reflection->GetBool(pb, field));
228
2
      break;
229
29
    case FieldDescriptor::CPPTYPE_ENUM:
230
29
      String(reflection->GetEnum(pb, field)->name());
231
29
      break;
232
4.92M
    case FieldDescriptor::CPPTYPE_STRING:
233
4.92M
      String(reflection->GetString(pb, field));
234
4.92M
      break;
235
29
    case FieldDescriptor::CPPTYPE_MESSAGE:
236
29
      Protobuf(reflection->GetMessage(pb, field));
237
29
      break;
238
0
    default:
239
0
      LOG(FATAL) << "Unknown cpp_type: " << field->cpp_type();
240
54.1M
  }
241
54.1M
}
242
243
55
void JsonWriter::ProtobufRepeatedField(const Message& pb, const FieldDescriptor* field, int index) {
244
55
  const Reflection* reflection = pb.GetReflection();
245
55
  switch (field->cpp_type()) {
246
8
    case FieldDescriptor::CPPTYPE_INT32:
247
8
      Int(reflection->GetRepeatedInt32(pb, field, index));
248
8
      break;
249
0
    case FieldDescriptor::CPPTYPE_INT64:
250
0
      Int64(reflection->GetRepeatedInt64(pb, field, index));
251
0
      break;
252
0
    case FieldDescriptor::CPPTYPE_UINT32:
253
0
      Uint(reflection->GetRepeatedUInt32(pb, field, index));
254
0
      break;
255
0
    case FieldDescriptor::CPPTYPE_UINT64:
256
0
      Uint64(reflection->GetRepeatedUInt64(pb, field, index));
257
0
      break;
258
0
    case FieldDescriptor::CPPTYPE_DOUBLE:
259
0
      Double(reflection->GetRepeatedDouble(pb, field, index));
260
0
      break;
261
0
    case FieldDescriptor::CPPTYPE_FLOAT:
262
0
      Double(reflection->GetRepeatedFloat(pb, field, index));
263
0
      break;
264
0
    case FieldDescriptor::CPPTYPE_BOOL:
265
0
      Bool(reflection->GetRepeatedBool(pb, field, index));
266
0
      break;
267
0
    case FieldDescriptor::CPPTYPE_ENUM:
268
0
      String(reflection->GetRepeatedEnum(pb, field, index)->name());
269
0
      break;
270
0
    case FieldDescriptor::CPPTYPE_STRING:
271
0
      String(reflection->GetRepeatedString(pb, field, index));
272
0
      break;
273
47
    case FieldDescriptor::CPPTYPE_MESSAGE:
274
47
      Protobuf(reflection->GetRepeatedMessage(pb, field, index));
275
47
      break;
276
0
    default:
277
0
      LOG(FATAL) << "Unknown cpp_type: " << field->cpp_type();
278
55
  }
279
55
}
280
281
7
string JsonWriter::ToJson(const Message& pb, Mode mode) {
282
7
  stringstream stream;
283
7
  JsonWriter writer(&stream, mode);
284
7
  writer.Protobuf(pb);
285
7
  return stream.str();
286
7
}
287
288
//
289
// UTF8StringStreamBuffer
290
//
291
292
UTF8StringStreamBuffer::UTF8StringStreamBuffer(std::stringstream* out)
293
15.5k
  : out_(DCHECK_NOTNULL(out)) {
294
15.5k
}
295
296
10.9G
void UTF8StringStreamBuffer::Put(rapidjson::UTF8<>::Ch c) {
297
10.9G
  out_->put(c);
298
10.9G
}
299
300
//
301
// JsonWriterImpl: simply forward to the underlying implementation.
302
//
303
304
template<class T>
305
JsonWriterImpl<T>::JsonWriterImpl(stringstream* out)
306
  : stream_(DCHECK_NOTNULL(out)),
307
15.5k
    writer_(stream_) {
308
15.5k
}
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEEC2EPNSt3__118basic_stringstreamIcNS9_11char_traitsIcEENS9_9allocatorIcEEEE
Line
Count
Source
307
15.5k
    writer_(stream_) {
308
15.5k
}
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEEC2EPNSt3__118basic_stringstreamIcNS9_11char_traitsIcEENS9_9allocatorIcEEEE
Line
Count
Source
307
22
    writer_(stream_) {
308
22
}
309
template<class T>
310
0
void JsonWriterImpl<T>::Null() { writer_.Null(); }
Unexecuted instantiation: _ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE4NullEv
Unexecuted instantiation: _ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE4NullEv
311
template<class T>
312
2
void JsonWriterImpl<T>::Bool(bool b) { writer_.Bool(b); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE4BoolEb
Line
Count
Source
312
1
void JsonWriterImpl<T>::Bool(bool b) { writer_.Bool(b); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE4BoolEb
Line
Count
Source
312
1
void JsonWriterImpl<T>::Bool(bool b) { writer_.Bool(b); }
313
template<class T>
314
18
void JsonWriterImpl<T>::Int(int i) { writer_.Int(i); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE3IntEi
Line
Count
Source
314
9
void JsonWriterImpl<T>::Int(int i) { writer_.Int(i); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE3IntEi
Line
Count
Source
314
9
void JsonWriterImpl<T>::Int(int i) { writer_.Int(i); }
315
template<class T>
316
132k
void JsonWriterImpl<T>::Uint(unsigned u) { writer_.Uint(u); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE4UintEj
Line
Count
Source
316
132k
void JsonWriterImpl<T>::Uint(unsigned u) { writer_.Uint(u); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE4UintEj
Line
Count
Source
316
23
void JsonWriterImpl<T>::Uint(unsigned u) { writer_.Uint(u); }
317
template<class T>
318
24.2M
void JsonWriterImpl<T>::Int64(int64_t i64) { writer_.Int64(i64); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE5Int64Ex
Line
Count
Source
318
24.2M
void JsonWriterImpl<T>::Int64(int64_t i64) { writer_.Int64(i64); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE5Int64Ex
Line
Count
Source
318
613
void JsonWriterImpl<T>::Int64(int64_t i64) { writer_.Int64(i64); }
319
template<class T>
320
95.7M
void JsonWriterImpl<T>::Uint64(uint64_t u64) { writer_.Uint64(u64); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6Uint64Ey
Line
Count
Source
320
95.7M
void JsonWriterImpl<T>::Uint64(uint64_t u64) { writer_.Uint64(u64); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6Uint64Ey
Line
Count
Source
320
2.07k
void JsonWriterImpl<T>::Uint64(uint64_t u64) { writer_.Uint64(u64); }
321
template<class T>
322
4.92M
void JsonWriterImpl<T>::Double(double d) { writer_.Double(d); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6DoubleEd
Line
Count
Source
322
4.92M
void JsonWriterImpl<T>::Double(double d) { writer_.Double(d); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6DoubleEd
Line
Count
Source
322
212
void JsonWriterImpl<T>::Double(double d) { writer_.Double(d); }
323
324
template<class T>
325
63.5M
void JsonWriterImpl<T>::String(const char* str, size_t length) {
326
63.5M
  writer_.String(str, narrow_cast<rapidjson::SizeType>(length));
327
63.5M
}
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6StringEPKcm
Line
Count
Source
325
63.5M
void JsonWriterImpl<T>::String(const char* str, size_t length) {
326
63.5M
  writer_.String(str, narrow_cast<rapidjson::SizeType>(length));
327
63.5M
}
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6StringEPKcm
Line
Count
Source
325
2.99k
void JsonWriterImpl<T>::String(const char* str, size_t length) {
326
2.99k
  writer_.String(str, narrow_cast<rapidjson::SizeType>(length));
327
2.99k
}
328
329
template<class T>
330
230M
void JsonWriterImpl<T>::String(const char* str) { writer_.String(str); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6StringEPKc
Line
Count
Source
330
230M
void JsonWriterImpl<T>::String(const char* str) { writer_.String(str); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6StringEPKc
Line
Count
Source
330
2.54k
void JsonWriterImpl<T>::String(const char* str) { writer_.String(str); }
331
template<class T>
332
63.5M
void JsonWriterImpl<T>::String(const string& str) { String(str.c_str(), str.length()); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6StringERKNSt3__112basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEE
Line
Count
Source
332
63.5M
void JsonWriterImpl<T>::String(const string& str) { String(str.c_str(), str.length()); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE6StringERKNSt3__112basic_stringIcNS9_11char_traitsIcEENS9_9allocatorIcEEEE
Line
Count
Source
332
2.99k
void JsonWriterImpl<T>::String(const string& str) { String(str.c_str(), str.length()); }
333
template<class T>
334
82.0M
void JsonWriterImpl<T>::StartObject() { writer_.StartObject(); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE11StartObjectEv
Line
Count
Source
334
82.0M
void JsonWriterImpl<T>::StartObject() { writer_.StartObject(); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE11StartObjectEv
Line
Count
Source
334
1.11k
void JsonWriterImpl<T>::StartObject() { writer_.StartObject(); }
335
template<class T>
336
82.0M
void JsonWriterImpl<T>::EndObject() { writer_.EndObject(); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE9EndObjectEv
Line
Count
Source
336
82.0M
void JsonWriterImpl<T>::EndObject() { writer_.EndObject(); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE9EndObjectEv
Line
Count
Source
336
1.11k
void JsonWriterImpl<T>::EndObject() { writer_.EndObject(); }
337
template<class T>
338
661k
void JsonWriterImpl<T>::StartArray() { writer_.StartArray(); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE10StartArrayEv
Line
Count
Source
338
661k
void JsonWriterImpl<T>::StartArray() { writer_.StartArray(); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE10StartArrayEv
Line
Count
Source
338
54
void JsonWriterImpl<T>::StartArray() { writer_.StartArray(); }
339
template<class T>
340
661k
void JsonWriterImpl<T>::EndArray() { writer_.EndArray(); }
_ZN2yb14JsonWriterImplIN9rapidjson12PrettyWriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE8EndArrayEv
Line
Count
Source
340
661k
void JsonWriterImpl<T>::EndArray() { writer_.EndArray(); }
_ZN2yb14JsonWriterImplIN9rapidjson6WriterINS_22UTF8StringStreamBufferENS1_4UTF8IcEES5_NS1_12CrtAllocatorELj0EEEE8EndArrayEv
Line
Count
Source
340
54
void JsonWriterImpl<T>::EndArray() { writer_.EndArray(); }
341
342
} // namespace yb