RTI Connext C# API Version 7.2.0
Rti.Dds.Core.Guid Struct Reference

A global unique identifier. More...

Inherits IEquatable< Guid >, and IComparable< Guid >.

Public Member Functions

 Guid (byte[] values)
 Creates a new Guid from an array of 16 bytes. More...
 
int CompareTo (Guid other)
 Compares two objects. More...
 
bool Equals (Guid other)
 Compares two objects for equality. More...
 
override bool Equals (object obj)
 Compares two objects for equality. More...
 
override int GetHashCode ()
 Gets the hash code. More...
 
override string ToString ()
 Converts to string. More...
 
InstanceHandle ToInstanceHandle ()
 Converts to InstanceHandle. More...
 
byte[] ToArray ()
 Converts this GUID to a byte array. More...
 

Static Public Member Functions

static Guid FromArray (byte[] bytes)
 Creates a Guid from the bytes in a 16-byte array More...
 
static Guid FromInstanceHandle (in InstanceHandle instanceHandle)
 Creates a new Guid from an InstanceHandle. More...
 

Properties

static Guid Unknown = default [get]
 Special object representing an unknown Guid. More...
 
static Guid Auto = default [get]
 Special object that indicates certain methods that the actual Guid. should be automatically determined. More...
 

Detailed Description

A global unique identifier.

Constructor & Destructor Documentation

◆ Guid()

Rti.Dds.Core.Guid.Guid ( byte[]  values)
inline

Creates a new Guid from an array of 16 bytes.

Member Function Documentation

◆ CompareTo()

int Rti.Dds.Core.Guid.CompareTo ( Guid  other)

Compares two objects.

◆ Equals() [1/2]

bool Rti.Dds.Core.Guid.Equals ( Guid  other)

Compares two objects for equality.

◆ Equals() [2/2]

override bool Rti.Dds.Core.Guid.Equals ( object  obj)

Compares two objects for equality.

◆ GetHashCode()

override int Rti.Dds.Core.Guid.GetHashCode ( )

Gets the hash code.

◆ ToString()

override string Rti.Dds.Core.Guid.ToString ( )

Converts to string.

◆ ToInstanceHandle()

InstanceHandle Rti.Dds.Core.Guid.ToInstanceHandle ( )
inline

Converts to InstanceHandle.

◆ ToArray()

byte[] Rti.Dds.Core.Guid.ToArray ( )

Converts this GUID to a byte array.

◆ FromArray()

static Guid Rti.Dds.Core.Guid.FromArray ( byte[]  bytes)
static

Creates a Guid from the bytes in a 16-byte array

◆ FromInstanceHandle()

static Guid Rti.Dds.Core.Guid.FromInstanceHandle ( in InstanceHandle  instanceHandle)
inlinestatic

Creates a new Guid from an InstanceHandle.

Property Documentation

◆ Unknown

Guid Rti.Dds.Core.Guid.Unknown = default
staticget

Special object representing an unknown Guid.

The full documentation is available in the C API: DDSGUID_tGUID_UNKNOWN

◆ Auto

Guid Rti.Dds.Core.Guid.Auto = default
staticget

Special object that indicates certain methods that the actual Guid. should be automatically determined.

The full documentation is available in the C API: DDSGUID_tGUID_AUTO