DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
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
12
namespace
DotNetDupe
{
13
namespace
System
{
22
class
Guid
:
public
Object
{
23
public
:
25
DOTNETDUPE_API
Guid
();
26
29
DOTNETDUPE_API
Guid
(
const
Array<uint8_t>
& b);
30
33
DOTNETDUPE_API
Guid
(
const
String
& g);
34
37
DOTNETDUPE_API
static
Guid
NewGuid
();
38
40
DOTNETDUPE_API
static
const
Guid
Empty
;
41
44
DOTNETDUPE_API
Array<uint8_t>
ToByteArray
()
const
;
45
48
DOTNETDUPE_API
String
ToString
()
const
;
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
}
Array.h
Provides methods for creating, manipulating, searching, and sorting arrays.
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
DotNetDupe::System::Array
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition
Array.h:29
DotNetDupe::System::Guid::ToString
String ToString() const
Returns a string representation of the value of this instance in standard "D" format (xxxxxxxx-xxxx-x...
Definition
Guid.cpp:72
DotNetDupe::System::Guid::Empty
static const Guid Empty
A read-only instance of the Guid structure whose value is all zeros.
Definition
Guid.h:40
DotNetDupe::System::Guid::ToByteArray
Array< uint8_t > ToByteArray() const
Returns a 16-element byte array that contains the value of this instance.
Definition
Guid.cpp:64
DotNetDupe::System::Guid::NewGuid
static Guid NewGuid()
Initializes a new instance of the Guid structure (RFC 4122 Version 4 random UUID).
Definition
Guid.cpp:49
DotNetDupe::System::Guid::operator==
bool operator==(const Guid &other) const
Determines whether two Guid instances have identical values.
Definition
Guid.cpp:83
DotNetDupe::System::Guid::operator!=
bool operator!=(const Guid &other) const
Determines whether two Guid instances have differing values.
Definition
Guid.cpp:87
DotNetDupe::System::Guid::Guid
Guid()
Initializes a new instance of the Guid structure initialized to all zeros.
Definition
Guid.cpp:15
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Guid.h
Generated by
1.18.0