aboutsummaryrefslogtreecommitdiff
path: root/src/pdf/SkUUID.h
blob: 3d81865dc0dd22f763456981fd4732c842344d37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2018 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#ifndef SkUUID_DEFINED
#define SkUUID_DEFINED

#include <cstdint>
#include <cstring>

struct SkUUID {
    uint8_t fData[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
};

static inline bool operator==(const SkUUID& u, const SkUUID& v) {
    return 0 == memcmp(u.fData, v.fData, sizeof(u.fData));
}
static inline bool operator!=(const SkUUID& u, const SkUUID& v) { return !(u == v); }

#endif  // SkUUID_DEFINED