Lines Matching refs:uuid
46 static size_t UuidSize(const Uuid& uuid) { in UuidSize() argument
47 size_t len = uuid.GetShortestRepresentationSize(); in UuidSize()
66 << ", uuid=" << service.uuid << "\n"; in ToString()
71 << ", end_handle=" << loghex(is.end_handle) << ", uuid=" << is.uuid in ToString()
78 << ", value_handle=" << loghex(c.value_handle) << ", uuid=" << c.uuid in ToString()
83 << ", uuid=" << d.uuid << "\n"; in ToString()
99 {.service = {.uuid = service.uuid, in Serialize()
109 .uuid = p_isvc.uuid}}}); in Serialize()
118 .uuid = charac.uuid}}}); in Serialize()
121 if (desc.uuid == CHARACTERISTIC_EXTENDED_PROPERTIES) { in Serialize()
123 desc.uuid, in Serialize()
127 nv_attr.push_back({desc.handle, desc.uuid, {}}); in Serialize()
147 .uuid = attr.value.service.uuid, in Deserialize()
182 .uuid = attr.value.included_service.uuid, in Deserialize()
189 .uuid = attr.value.characteristic.uuid, in Deserialize()
198 .uuid = attr.type, in Deserialize()
204 Descriptor{.handle = attr.handle, .uuid = attr.type}); in Deserialize()
216 len += 4 + UuidSize(service.uuid); in Hash()
219 len += 8 + UuidSize(is.uuid); in Hash()
223 len += 7 + UuidSize(c.uuid); in Hash()
226 if (UuidSize(d.uuid) != Uuid::kNumBytes16) { in Hash()
229 uint16_t value = d.uuid.As16Bit(); in Hash()
235 len += 2 + UuidSize(d.uuid); in Hash()
237 len += 4 + UuidSize(d.uuid); in Hash()
253 if (UuidSize(service.uuid) == Uuid::kNumBytes16) { in Hash()
254 UINT16_TO_STREAM(p, service.uuid.As16Bit()); in Hash()
256 ARRAY_TO_STREAM(p, service.uuid.To128BitLE(), (int)Uuid::kNumBytes128); in Hash()
265 if (UuidSize(is.uuid) == Uuid::kNumBytes16) { in Hash()
266 UINT16_TO_STREAM(p, is.uuid.As16Bit()); in Hash()
268 ARRAY_TO_STREAM(p, is.uuid.To128BitLE(), (int)Uuid::kNumBytes128); in Hash()
278 if (UuidSize(c.uuid) == Uuid::kNumBytes16) { in Hash()
279 UINT16_TO_STREAM(p, c.uuid.As16Bit()); in Hash()
281 ARRAY_TO_STREAM(p, c.uuid.To128BitLE(), (int)Uuid::kNumBytes128); in Hash()
285 if (UuidSize(d.uuid) != Uuid::kNumBytes16) continue; in Hash()
286 uint16_t value = d.uuid.As16Bit(); in Hash()
293 UINT16_TO_STREAM(p, d.uuid.As16Bit()); in Hash()
296 UINT16_TO_STREAM(p, d.uuid.As16Bit()); in Hash()