Commit | Line | Data |
---|---|---|
638a0d12 SM |
1 | /* |
2 | * Copyright (c) 2016-2022 Philippe Proulx <pproulx@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: MIT | |
5 | */ | |
6 | ||
638a0d12 | 7 | #include "uuid-view.hpp" |
c802cacb | 8 | #include "uuid.hpp" |
638a0d12 SM |
9 | |
10 | namespace bt2_common { | |
11 | ||
12 | UuidView::UuidView(const Uuid& uuid) noexcept : _mUuid {uuid.data()} | |
13 | { | |
14 | } | |
15 | ||
16 | UuidView::operator Uuid() const noexcept | |
17 | { | |
18 | return Uuid {*this}; | |
19 | } | |
20 | ||
21 | } /* namespace bt2_common */ |