Lines Matching full:uuid
69 SkPDFMetadata::UUID SkPDFMetadata::CreateUUID( in CreateUUID()
71 // The main requirement is for the UUID to be unique; the exact in CreateUUID()
102 static_assert(sizeof(digest) == sizeof(UUID), "uuid_size"); in CreateUUID()
103 SkPDFMetadata::UUID uuid; in CreateUUID() local
104 memcpy(&uuid, &digest, sizeof(digest)); in CreateUUID()
105 return uuid; in CreateUUID()
108 sk_sp<SkPDFObject> SkPDFMetadata::MakePdfId(const UUID& doc, in MakePdfId()
109 const UUID& instance) { in MakePdfId()
113 static_assert(sizeof(SkPDFMetadata::UUID) == 16, "uuid_size"); in MakePdfId()
115 SkString(reinterpret_cast<const char*>(&doc), sizeof(UUID))); in MakePdfId()
117 SkString(reinterpret_cast<const char*>(&instance), sizeof(UUID))); in MakePdfId()
129 static SkString uuid_to_string(const SkPDFMetadata::UUID& uuid) { in uuid_to_string() argument
135 const uint8_t* data = uuid.fData; in uuid_to_string()
146 SkASSERT(data == uuid.fData + 16); in uuid_to_string()
231 const UUID& doc, in MakeXMPObject()
232 const UUID& instance) { in MakeXMPObject()
256 "<xmpMM:DocumentID>uuid:%s</xmpMM:DocumentID>\n" in MakeXMPObject()
257 "<xmpMM:InstanceID>uuid:%s</xmpMM:InstanceID>\n" in MakeXMPObject()