Home
last modified time | relevance | path

Searched refs:DataPiece (Results 1 – 10 of 10) sorted by relevance

/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.h59 class PROTOBUF_EXPORT DataPiece {
78 explicit DataPiece(const int32 value) in DataPiece() function
80 explicit DataPiece(const int64 value) in DataPiece() function
82 explicit DataPiece(const uint32 value) in DataPiece() function
84 explicit DataPiece(const uint64 value) in DataPiece() function
86 explicit DataPiece(const double value) in DataPiece() function
90 explicit DataPiece(const float value) in DataPiece() function
92 explicit DataPiece(const bool value) in DataPiece() function
94 DataPiece(StringPiece value, bool use_strict_base64_decoding) in DataPiece() function
99 DataPiece(StringPiece value, bool dummy, bool use_strict_base64_decoding) in DataPiece() function
[all …]
Dobject_writer.cc41 void ObjectWriter::RenderDataPieceTo(const DataPiece& data, in RenderDataPieceTo()
44 case DataPiece::TYPE_INT32: { in RenderDataPieceTo()
48 case DataPiece::TYPE_INT64: { in RenderDataPieceTo()
52 case DataPiece::TYPE_UINT32: { in RenderDataPieceTo()
56 case DataPiece::TYPE_UINT64: { in RenderDataPieceTo()
60 case DataPiece::TYPE_DOUBLE: { in RenderDataPieceTo()
64 case DataPiece::TYPE_FLOAT: { in RenderDataPieceTo()
68 case DataPiece::TYPE_BOOL: { in RenderDataPieceTo()
72 case DataPiece::TYPE_STRING: { in RenderDataPieceTo()
76 case DataPiece::TYPE_BYTES: { in RenderDataPieceTo()
[all …]
Ddefault_value_objectwriter.cc52 StatusOr<T> (DataPiece::*converter_fn)() const, T default_value) { in ConvertTo()
54 StatusOr<T> result = (DataPiece(value, true).*converter_fn)(); in ConvertTo()
84 RenderDataPiece(name, DataPiece(value)); in RenderBool()
94 RenderDataPiece(name, DataPiece(value)); in RenderInt32()
104 RenderDataPiece(name, DataPiece(value)); in RenderUint32()
114 RenderDataPiece(name, DataPiece(value)); in RenderInt64()
124 RenderDataPiece(name, DataPiece(value)); in RenderUint64()
134 RenderDataPiece(name, DataPiece(value)); in RenderDouble()
144 RenderDataPiece(name, DataPiece(value)); in RenderFloat()
157 RenderDataPiece(name, DataPiece(*string_values_.back(), true)); in RenderString()
[all …]
Dprotostream_objectwriter.cc295 StringPiece name, const DataPiece& value) { in RenderDataPiece()
312 if (value.type() != DataPiece::TYPE_NULL && !invalid_) { in RenderDataPiece()
327 void ProtoStreamObjectWriter::AnyWriter::StartAny(const DataPiece& value) { in StartAny()
330 if (value.type() == DataPiece::TYPE_STRING) { in StartAny()
436 if (value_.type() == DataPiece::TYPE_STRING) { in DeepCopy()
438 value_ = DataPiece(value_storage_, value_.use_strict_base64_decoding()); in DeepCopy()
439 } else if (value_.type() == DataPiece::TYPE_BYTES) { in DeepCopy()
442 DataPiece(value_storage_, true, value_.use_strict_base64_decoding()); in DeepCopy()
561 DataPiece(name, use_strict_base64_decoding())); in StartObject()
729 DataPiece(name, use_strict_base64_decoding())); in StartList()
[all …]
Dprotostream_objectwriter.h132 const DataPiece& data) override;
137 const DataPiece&);
160 void RenderDataPiece(StringPiece name, const DataPiece& value);
176 explicit Event(Type type) : type_(type), value_(DataPiece::NullData()) {} in Event()
180 : type_(type), name_(name), value_(DataPiece::NullData()) {} in Event()
183 explicit Event(StringPiece name, const DataPiece& value) in Event()
208 DataPiece value_;
213 void StartAny(const DataPiece& value);
346 const DataPiece& value);
350 const DataPiece& value);
[all …]
Dproto_writer.h80 return RenderDataPiece(name, DataPiece(value)); in RenderBool()
83 return RenderDataPiece(name, DataPiece(value)); in RenderInt32()
86 return RenderDataPiece(name, DataPiece(value)); in RenderUint32()
89 return RenderDataPiece(name, DataPiece(value)); in RenderInt64()
92 return RenderDataPiece(name, DataPiece(value)); in RenderUint64()
95 return RenderDataPiece(name, DataPiece(value)); in RenderDouble()
98 return RenderDataPiece(name, DataPiece(value)); in RenderFloat()
103 DataPiece(value, use_strict_base64_decoding())); in RenderString()
107 name, DataPiece(value, false, use_strict_base64_decoding())); in RenderBytes()
110 return RenderDataPiece(name, DataPiece::NullData()); in RenderNull()
[all …]
Ddatapiece.cc119 StatusOr<int32> DataPiece::ToInt32() const { in ToInt32()
131 StatusOr<uint32> DataPiece::ToUint32() const { in ToUint32()
144 StatusOr<int64> DataPiece::ToInt64() const { in ToInt64()
156 StatusOr<uint64> DataPiece::ToUint64() const { in ToUint64()
169 StatusOr<double> DataPiece::ToDouble() const { in ToDouble()
189 StatusOr<float> DataPiece::ToFloat() const { in ToFloat()
204 StatusOr<bool> DataPiece::ToBool() const { in ToBool()
216 StatusOr<std::string> DataPiece::ToString() const { in ToString()
231 std::string DataPiece::ValueAsStringOrDefault( in ValueAsStringOrDefault()
262 StatusOr<std::string> DataPiece::ToBytes() const { in ToBytes()
[all …]
Ddefault_value_objectwriter.h154 NodeKind kind, const DataPiece& data, bool is_placeholder,
193 void set_data(const DataPiece& data) { data_ = data; } in set_data()
221 DataPiece data_;
253 const DataPiece& data, bool is_placeholder,
261 static DataPiece CreateDefaultDataPieceForField( in CreateDefaultDataPieceForField()
267 static DataPiece CreateDefaultDataPieceForField(
285 void RenderDataPiece(StringPiece name, const DataPiece& data);
290 static DataPiece FindEnumDefault(const google::protobuf::Field& field,
Dproto_writer.cc123 inline Status WriteInt32(int field_number, const DataPiece& data, in WriteInt32()
133 inline Status WriteSFixed32(int field_number, const DataPiece& data, in WriteSFixed32()
143 inline Status WriteSInt32(int field_number, const DataPiece& data, in WriteSInt32()
153 inline Status WriteFixed32(int field_number, const DataPiece& data, in WriteFixed32()
163 inline Status WriteUInt32(int field_number, const DataPiece& data, in WriteUInt32()
173 inline Status WriteInt64(int field_number, const DataPiece& data, in WriteInt64()
183 inline Status WriteSFixed64(int field_number, const DataPiece& data, in WriteSFixed64()
193 inline Status WriteSInt64(int field_number, const DataPiece& data, in WriteSInt64()
203 inline Status WriteFixed64(int field_number, const DataPiece& data, in WriteFixed64()
213 inline Status WriteUInt64(int field_number, const DataPiece& data, in WriteUInt64()
[all …]
Dobject_writer.h44 class DataPiece; variable
110 static void RenderDataPieceTo(const DataPiece& data, StringPiece name,