Table of Contents

Class TlvStream

Namespace
NLightning.Domain.Protocol.Models
Assembly
NLightning.Domain.dll

A series of (possibly zero) TLVs

public sealed class TlvStream
Inheritance
TlvStream
Inherited Members

Methods

Add(BaseTlv)

Add a TLV to the stream

public void Add(BaseTlv baseTlv)

Parameters

baseTlv BaseTlv

The TLV to add

Add(params BaseTlv?[])

Add a series of TLV to the stream

public void Add(params BaseTlv?[] tlvs)

Parameters

tlvs BaseTlv[]

The TLVs to add

Any()

Check if any TLVs are present

public bool Any()

Returns

bool

GetTlvs()

Get all TLVs in the stream

public IEnumerable<BaseTlv> GetTlvs()

Returns

IEnumerable<BaseTlv>

TryGetTlv(BigSize, out BaseTlv?)

Get a specific TLV from the stream

public bool TryGetTlv(BigSize type, out BaseTlv? tlv)

Parameters

type BigSize

The type of TLV to get

tlv BaseTlv

The TLV to get

Returns

bool