DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Guid.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "Common.h"
7#include "System/Object.h"
8#include "System/String.h"
9#include "System/Array.h"
10#include <cstdint>
11
12namespace DotNetDupe {
13 namespace System {
22 class Guid : public Object {
23 public:
26
30
33 DOTNETDUPE_API Guid(const String& g);
34
38
41
45
49
53 DOTNETDUPE_API bool operator==(const Guid& other) const;
54
58 DOTNETDUPE_API bool operator!=(const Guid& other) const;
59
60 private:
61 uint8_t _data[16];
62 };
63 }
64}
Provides methods for creating, manipulating, searching, and sorting arrays.
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition Array.h:29
String ToString() const
Returns a string representation of the value of this instance in standard "D" format (xxxxxxxx-xxxx-x...
Definition Guid.cpp:72
static const Guid Empty
A read-only instance of the Guid structure whose value is all zeros.
Definition Guid.h:40
Array< uint8_t > ToByteArray() const
Returns a 16-element byte array that contains the value of this instance.
Definition Guid.cpp:64
static Guid NewGuid()
Initializes a new instance of the Guid structure (RFC 4122 Version 4 random UUID).
Definition Guid.cpp:49
bool operator==(const Guid &other) const
Determines whether two Guid instances have identical values.
Definition Guid.cpp:83
bool operator!=(const Guid &other) const
Determines whether two Guid instances have differing values.
Definition Guid.cpp:87
Guid()
Initializes a new instance of the Guid structure initialized to all zeros.
Definition Guid.cpp:15
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74