Table of Contents

Struct ChannelId

Namespace
NLightning.Common.Types
Assembly
NLightning.Common.dll

Represents a channel id.

public readonly struct ChannelId
Inherited Members

Remarks

The channel id is a unique identifier for a channel.

Constructors

ChannelId(byte[])

public ChannelId(byte[] value)

Parameters

value byte[]

ChannelId(Span<byte>)

public ChannelId(Span<byte> value)

Parameters

value Span<byte>

Properties

Zero

public static ChannelId Zero { get; }

Property Value

ChannelId

Methods

DeserializeAsync(Stream)

public static Task<ChannelId> DeserializeAsync(Stream stream)

Parameters

stream Stream

Returns

Task<ChannelId>

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

SerializeAsync(Stream)

public ValueTask SerializeAsync(Stream stream)

Parameters

stream Stream

Returns

ValueTask

Operators

operator ==(ChannelId, ChannelId)

public static bool operator ==(ChannelId left, ChannelId right)

Parameters

left ChannelId
right ChannelId

Returns

bool

implicit operator byte[](ChannelId)

public static implicit operator byte[](ChannelId c)

Parameters

c ChannelId

Returns

byte[]

implicit operator ChannelId(byte[])

public static implicit operator ChannelId(byte[] value)

Parameters

value byte[]

Returns

ChannelId

implicit operator ChannelId(Span<byte>)

public static implicit operator ChannelId(Span<byte> value)

Parameters

value Span<byte>

Returns

ChannelId

operator !=(ChannelId, ChannelId)

public static bool operator !=(ChannelId left, ChannelId right)

Parameters

left ChannelId
right ChannelId

Returns

bool