Table of Contents

Struct PeerId

Namespace
TaleWorlds.Diamond
Assembly
TaleWorlds.Diamond.dll
[DataContract]
public struct PeerId
Inherited Members
Extension Methods

Constructors

PeerId(byte[])

public PeerId(byte[] data)

Parameters

data byte[]

PeerId(Guid)

public PeerId(Guid guid)

Parameters

guid Guid

PeerId(string)

public PeerId(string peerIdAsString)

Parameters

peerIdAsString string

PeerId(ulong, ulong, ulong, ulong)

public PeerId(ulong chunk1, ulong chunk2, ulong chunk3, ulong chunk4)

Parameters

chunk1 ulong
chunk2 ulong
chunk3 ulong
chunk4 ulong

Properties

Empty

public static PeerId Empty { get; }

Property Value

PeerId

IsValid

public bool IsValid { get; }

Property Value

bool

Methods

Equals(object)

public override bool Equals(object o)

Parameters

o object

Returns

bool

FromString(string)

public static PeerId FromString(string peerIdAsString)

Parameters

peerIdAsString string

Returns

PeerId

GetHashCode()

public override int GetHashCode()

Returns

int

ToByteArray()

public byte[] ToByteArray()

Returns

byte[]

ToString()

public override string ToString()

Returns

string

Operators

operator ==(PeerId, PeerId)

public static bool operator ==(PeerId a, PeerId b)

Parameters

a PeerId
b PeerId

Returns

bool

operator !=(PeerId, PeerId)

public static bool operator !=(PeerId a, PeerId b)

Parameters

a PeerId
b PeerId

Returns

bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).