Table of Contents

Class BaseTlv

Namespace
NLightning.Domain.Protocol.Tlv
Assembly
NLightning.Domain.dll
public class BaseTlv
Inheritance
BaseTlv
Derived
Inherited Members

Constructors

BaseTlv(BigSize, BigSize, byte[])

public BaseTlv(BigSize type, BigSize length, byte[] value)

Parameters

type BigSize
length BigSize
value byte[]

BaseTlv(BigSize, byte[])

Create a new TLV

public BaseTlv(BigSize type, byte[] value)

Parameters

type BigSize

The type of the TLV

value byte[]

The value of the TLV

Remarks

The length of the value is automatically calculated

Properties

Length

The length of the value

public BigSize Length { get; protected init; }

Property Value

BigSize

Type

The type of the TLV

public BigSize Type { get; }

Property Value

BigSize

Value

The value

public byte[] Value { get; }

Property Value

byte[]

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(BaseTlv, BaseTlv)

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

Parameters

left BaseTlv
right BaseTlv

Returns

bool

operator !=(BaseTlv, BaseTlv)

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

Parameters

left BaseTlv
right BaseTlv

Returns

bool