diff options
Diffstat (limited to 'dev/kernel/CFKit/GUIDWrapper.h')
| -rw-r--r-- | dev/kernel/CFKit/GUIDWrapper.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/dev/kernel/CFKit/GUIDWrapper.h b/dev/kernel/CFKit/GUIDWrapper.h deleted file mode 100644 index 2bf7b64e..00000000 --- a/dev/kernel/CFKit/GUIDWrapper.h +++ /dev/null @@ -1,48 +0,0 @@ -/* ======================================== - - Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. - -======================================== */ - -#pragma once - -#include <NeKit/Defines.h> -#include <NeKit/Ref.h> -#include <NeKit/Stream.h> - -/* GUID for C++ classes. */ - -#define kXRNNil "@{........-....-M...-N...-............}" - -/// @brief eXtended Resource Namespace -namespace Kernel::CF::XRN { -union GUIDSequence final { - alignas(8) UShort fU8[16]; - alignas(8) UShort fU16[8]; - alignas(8) UInt fU32[4]; - alignas(8) ULong fU64[2]; - - struct GUID { - alignas(8) UInt fMs1; - UShort fMs2; - UShort fMs3; - UChar fMs4[8]; - } fUuid; -}; - -class GUID final { - public: - explicit GUID() = default; - ~GUID() = default; - - public: - NE_COPY_DEFAULT(GUID) - - public: - GUIDSequence& operator->() noexcept { return fUUID; } - GUIDSequence& Leak() noexcept { return fUUID; } - - private: - GUIDSequence fUUID; -}; -} // namespace Kernel::CF::XRN |
