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
BaseTlv(BigSize, byte[])
Create a new TLV
public BaseTlv(BigSize type, byte[] value)
Parameters
Remarks
The length of the value is automatically calculated
Properties
Length
The length of the value
public BigSize Length { get; protected init; }
Property Value
Type
The type of the TLV
public BigSize Type { get; }
Property Value
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
objectThe object to compare with the current object.
Returns
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
Returns
operator !=(BaseTlv, BaseTlv)
public static bool operator !=(BaseTlv left, BaseTlv right)