Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Ddatapiece.h60 class LIBPROTOBUF_EXPORT DataPiece {
79 explicit DataPiece(const int32 value) : type_(TYPE_INT32), i32_(value) {} in DataPiece() function
80 explicit DataPiece(const int64 value) : type_(TYPE_INT64), i64_(value) {} in DataPiece() function
81 explicit DataPiece(const uint32 value) : type_(TYPE_UINT32), u32_(value) {} in DataPiece() function
82 explicit DataPiece(const uint64 value) : type_(TYPE_UINT64), u64_(value) {} in DataPiece() function
83 explicit DataPiece(const double value) : type_(TYPE_DOUBLE), double_(value) {} in DataPiece() function
84 explicit DataPiece(const float value) : type_(TYPE_FLOAT), float_(value) {} in DataPiece() function
85 explicit DataPiece(const bool value) : type_(TYPE_BOOL), bool_(value) {} in DataPiece() function
86 DataPiece(StringPiece value, bool use_strict_base64_decoding) in DataPiece() function
91 DataPiece(StringPiece value, bool dummy, bool use_strict_base64_decoding) in DataPiece() function
[all …]
Dobject_writer.cc41 void ObjectWriter::RenderDataPieceTo(const DataPiece& data, StringPiece name, 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.cc51 T ConvertTo(StringPiece value, StatusOr<T> (DataPiece::*converter_fn)() const, in ConvertTo()
54 StatusOr<T> result = (DataPiece(value, true).*converter_fn)(); in ConvertTo()
85 RenderDataPiece(name, DataPiece(value)); in RenderBool()
95 RenderDataPiece(name, DataPiece(value)); in RenderInt32()
105 RenderDataPiece(name, DataPiece(value)); in RenderUint32()
115 RenderDataPiece(name, DataPiece(value)); in RenderInt64()
125 RenderDataPiece(name, DataPiece(value)); in RenderUint64()
135 RenderDataPiece(name, DataPiece(value)); in RenderDouble()
145 RenderDataPiece(name, DataPiece(value)); in RenderFloat()
158 RenderDataPiece(name, DataPiece(*string_values_.back(), true)); in RenderString()
[all …]
Ddatapiece.cc115 StatusOr<int32> DataPiece::ToInt32() const { in ToInt32()
127 StatusOr<uint32> DataPiece::ToUint32() const { in ToUint32()
139 StatusOr<int64> DataPiece::ToInt64() const { in ToInt64()
151 StatusOr<uint64> DataPiece::ToUint64() const { in ToUint64()
163 StatusOr<double> DataPiece::ToDouble() const { in ToDouble()
176 StatusOr<float> DataPiece::ToFloat() const { in ToFloat()
191 StatusOr<bool> DataPiece::ToBool() const { in ToBool()
203 StatusOr<string> DataPiece::ToString() const { in ToString()
218 string DataPiece::ValueAsStringOrDefault(StringPiece default_string) const { in ValueAsStringOrDefault()
248 StatusOr<string> DataPiece::ToBytes() const { in ToBytes()
[all …]
Dproto_writer.h89 return RenderDataPiece(name, DataPiece(value)); in RenderBool()
92 return RenderDataPiece(name, DataPiece(value)); in RenderInt32()
95 return RenderDataPiece(name, DataPiece(value)); in RenderUint32()
98 return RenderDataPiece(name, DataPiece(value)); in RenderInt64()
101 return RenderDataPiece(name, DataPiece(value)); in RenderUint64()
104 return RenderDataPiece(name, DataPiece(value)); in RenderDouble()
107 return RenderDataPiece(name, DataPiece(value)); in RenderFloat()
111 DataPiece(value, use_strict_base64_decoding())); in RenderString()
115 name, DataPiece(value, false, use_strict_base64_decoding())); in RenderBytes()
118 return RenderDataPiece(name, DataPiece::NullData()); in RenderNull()
[all …]
Dprotostream_objectwriter.cc275 StringPiece name, const DataPiece& value) { in RenderDataPiece()
311 void ProtoStreamObjectWriter::AnyWriter::StartAny(const DataPiece& value) { in StartAny()
314 if (value.type() == DataPiece::TYPE_STRING) { in StartAny()
492 DataPiece(name, use_strict_base64_decoding())); in StartObject()
658 DataPiece(name, use_strict_base64_decoding())); in StartList()
808 const DataPiece& data) { in RenderStructValue()
812 case DataPiece::TYPE_INT64: { in RenderStructValue()
820 DataPiece(SimpleItoa(int_value.ValueOrDie()), true)); in RenderStructValue()
827 case DataPiece::TYPE_UINT64: { in RenderStructValue()
835 DataPiece(SimpleItoa(int_value.ValueOrDie()), true)); in RenderStructValue()
[all …]
Dprotostream_objectwriter.h117 const DataPiece& value);
122 const DataPiece&);
145 void RenderDataPiece(StringPiece name, const DataPiece& value);
149 void StartAny(const DataPiece& value);
274 const DataPiece& value);
278 const DataPiece& value);
282 const DataPiece& value);
286 const DataPiece& value);
291 const DataPiece& value);
Ddefault_value_objectwriter.h142 const DataPiece& data, bool is_placeholder, const vector<string>& path,
179 void set_data(const DataPiece& data) { data_ = data; } in set_data()
207 DataPiece data_;
238 static DataPiece CreateDefaultDataPieceForField(
242 void RenderDataPiece(StringPiece name, const DataPiece& data);
247 static DataPiece FindEnumDefault(const google::protobuf::Field& field,
Dproto_writer.cc115 inline Status WriteInt32(int field_number, const DataPiece& data, in WriteInt32()
125 inline Status WriteSFixed32(int field_number, const DataPiece& data, in WriteSFixed32()
135 inline Status WriteSInt32(int field_number, const DataPiece& data, in WriteSInt32()
145 inline Status WriteFixed32(int field_number, const DataPiece& data, in WriteFixed32()
155 inline Status WriteUInt32(int field_number, const DataPiece& data, in WriteUInt32()
165 inline Status WriteInt64(int field_number, const DataPiece& data, in WriteInt64()
175 inline Status WriteSFixed64(int field_number, const DataPiece& data, in WriteSFixed64()
185 inline Status WriteSInt64(int field_number, const DataPiece& data, in WriteSInt64()
195 inline Status WriteFixed64(int field_number, const DataPiece& data, in WriteFixed64()
205 inline Status WriteUInt64(int field_number, const DataPiece& data, in WriteUInt64()
[all …]
Dobject_writer.h42 class DataPiece; variable
106 static void RenderDataPieceTo(const DataPiece& data, StringPiece name,