Lines Matching refs:reader
76 bool PopValueFromReader(dbus::MessageReader* reader, bool* value) { in PopValueFromReader() argument
78 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
79 reader->PopBool(value); in PopValueFromReader()
82 bool PopValueFromReader(dbus::MessageReader* reader, uint8_t* value) { in PopValueFromReader() argument
84 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
85 reader->PopByte(value); in PopValueFromReader()
88 bool PopValueFromReader(dbus::MessageReader* reader, int16_t* value) { in PopValueFromReader() argument
90 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
91 reader->PopInt16(value); in PopValueFromReader()
94 bool PopValueFromReader(dbus::MessageReader* reader, uint16_t* value) { in PopValueFromReader() argument
96 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
97 reader->PopUint16(value); in PopValueFromReader()
100 bool PopValueFromReader(dbus::MessageReader* reader, int32_t* value) { in PopValueFromReader() argument
102 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
103 reader->PopInt32(value); in PopValueFromReader()
106 bool PopValueFromReader(dbus::MessageReader* reader, uint32_t* value) { in PopValueFromReader() argument
108 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
109 reader->PopUint32(value); in PopValueFromReader()
112 bool PopValueFromReader(dbus::MessageReader* reader, int64_t* value) { in PopValueFromReader() argument
114 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
115 reader->PopInt64(value); in PopValueFromReader()
118 bool PopValueFromReader(dbus::MessageReader* reader, uint64_t* value) { in PopValueFromReader() argument
120 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
121 reader->PopUint64(value); in PopValueFromReader()
124 bool PopValueFromReader(dbus::MessageReader* reader, double* value) { in PopValueFromReader() argument
126 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
127 reader->PopDouble(value); in PopValueFromReader()
130 bool PopValueFromReader(dbus::MessageReader* reader, std::string* value) { in PopValueFromReader() argument
132 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
133 reader->PopString(value); in PopValueFromReader()
136 bool PopValueFromReader(dbus::MessageReader* reader, dbus::ObjectPath* value) { in PopValueFromReader() argument
138 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
139 reader->PopObjectPath(value); in PopValueFromReader()
142 bool PopValueFromReader(dbus::MessageReader* reader, in PopValueFromReader() argument
145 return details::DescendIntoVariantIfPresent(&reader, &variant_reader) && in PopValueFromReader()
146 reader->PopFileDescriptor(value); in PopValueFromReader()
155 bool PopTypedValueFromReader(dbus::MessageReader* reader, in PopTypedValueFromReader() argument
158 if (!PopValueFromReader(reader, &data)) in PopTypedValueFromReader()
166 bool PopTypedArrayFromReader(dbus::MessageReader* reader, in PopTypedArrayFromReader() argument
168 return PopTypedValueFromReader<std::vector<T>>(reader, value); in PopTypedArrayFromReader()
173 bool PopTypedMapFromReader(dbus::MessageReader* reader, brillo::Any* value) { in PopTypedMapFromReader() argument
174 return PopTypedValueFromReader<std::map<KEY, VALUE>>(reader, value); in PopTypedMapFromReader()
180 bool PopArrayValueFromReader(dbus::MessageReader* reader, in PopArrayValueFromReader() argument
182 std::string signature = reader->GetDataSignature(); in PopArrayValueFromReader()
184 return PopTypedArrayFromReader<bool>(reader, value); in PopArrayValueFromReader()
186 return PopTypedArrayFromReader<uint8_t>(reader, value); in PopArrayValueFromReader()
188 return PopTypedArrayFromReader<int16_t>(reader, value); in PopArrayValueFromReader()
190 return PopTypedArrayFromReader<uint16_t>(reader, value); in PopArrayValueFromReader()
192 return PopTypedArrayFromReader<int32_t>(reader, value); in PopArrayValueFromReader()
194 return PopTypedArrayFromReader<uint32_t>(reader, value); in PopArrayValueFromReader()
196 return PopTypedArrayFromReader<int64_t>(reader, value); in PopArrayValueFromReader()
198 return PopTypedArrayFromReader<uint64_t>(reader, value); in PopArrayValueFromReader()
200 return PopTypedArrayFromReader<double>(reader, value); in PopArrayValueFromReader()
202 return PopTypedArrayFromReader<std::string>(reader, value); in PopArrayValueFromReader()
204 return PopTypedArrayFromReader<dbus::ObjectPath>(reader, value); in PopArrayValueFromReader()
206 return PopTypedArrayFromReader<brillo::Any>(reader, value); in PopArrayValueFromReader()
208 return PopTypedMapFromReader<std::string, std::string>(reader, value); in PopArrayValueFromReader()
210 return PopTypedValueFromReader<brillo::VariantDictionary>(reader, value); in PopArrayValueFromReader()
213 std::map<std::string, std::string>>(reader, value); in PopArrayValueFromReader()
215 return PopTypedArrayFromReader<brillo::VariantDictionary>(reader, value); in PopArrayValueFromReader()
218 std::string, std::map<std::string, std::string>>(reader, value); in PopArrayValueFromReader()
221 std::string, brillo::VariantDictionary>(reader, value); in PopArrayValueFromReader()
224 std::string, std::vector<uint8_t>>(reader, value); in PopArrayValueFromReader()
226 return PopTypedMapFromReader<uint32_t, brillo::Any>(reader, value); in PopArrayValueFromReader()
229 std::tuple<std::string, uint32_t>>(reader, value); in PopArrayValueFromReader()
231 return PopTypedMapFromReader<uint32_t, uint32_t>(reader, value); in PopArrayValueFromReader()
234 std::tuple<uint32_t, uint32_t>>(reader, value); in PopArrayValueFromReader()
237 std::tuple<uint32_t, bool, std::vector<uint8_t>>>(reader, value); in PopArrayValueFromReader()
249 bool PopStructValueFromReader(dbus::MessageReader* reader, in PopStructValueFromReader() argument
251 std::string signature = reader->GetDataSignature(); in PopStructValueFromReader()
253 return PopTypedValueFromReader<std::tuple<int, int>>(reader, value); in PopStructValueFromReader()
255 return PopTypedValueFromReader<std::tuple<std::string, std::string>>(reader, in PopStructValueFromReader()
258 return PopTypedValueFromReader<std::tuple<uint32_t, bool>>(reader, value); in PopStructValueFromReader()
260 return PopTypedValueFromReader<std::tuple<uint32_t, uint32_t>>(reader, in PopStructValueFromReader()
264 std::tuple<uint32_t, brillo::VariantDictionary>>(reader, value); in PopStructValueFromReader()
275 bool PopValueFromReader(dbus::MessageReader* reader, brillo::Any* value) { in PopValueFromReader() argument
277 if (!details::DescendIntoVariantIfPresent(&reader, &variant_reader)) in PopValueFromReader()
280 switch (reader->GetDataType()) { in PopValueFromReader()
282 return PopTypedValueFromReader<uint8_t>(reader, value); in PopValueFromReader()
284 return PopTypedValueFromReader<bool>(reader, value); in PopValueFromReader()
286 return PopTypedValueFromReader<int16_t>(reader, value); in PopValueFromReader()
288 return PopTypedValueFromReader<uint16_t>(reader, value); in PopValueFromReader()
290 return PopTypedValueFromReader<int32_t>(reader, value); in PopValueFromReader()
292 return PopTypedValueFromReader<uint32_t>(reader, value); in PopValueFromReader()
294 return PopTypedValueFromReader<int64_t>(reader, value); in PopValueFromReader()
296 return PopTypedValueFromReader<uint64_t>(reader, value); in PopValueFromReader()
298 return PopTypedValueFromReader<double>(reader, value); in PopValueFromReader()
300 return PopTypedValueFromReader<std::string>(reader, value); in PopValueFromReader()
302 return PopTypedValueFromReader<dbus::ObjectPath>(reader, value); in PopValueFromReader()
304 return PopArrayValueFromReader(reader, value); in PopValueFromReader()
306 return PopStructValueFromReader(reader, value); in PopValueFromReader()