TlvCodecs
- Source:
- Tlv.scala
Value members
Concrete methods
When used inside a message, most of the time a tlv stream needs to specify its length. Note that some messages will have an independent length field and won't need this codec.
When used inside a message, most of the time a tlv stream needs to specify its length. Note that some messages will have an independent length field and won't need this codec.
- Type parameters:
- T
stream namespace.
- Value parameters:
- codec
codec used for the tlv records contained in the stream.
- Source:
- Tlv.scala
A tlv stream codec relies on an underlying tlv codec. This allows tlv streams to have different namespaces, increasing the total number of tlv types available.
A tlv stream codec relies on an underlying tlv codec. This allows tlv streams to have different namespaces, increasing the total number of tlv types available.
- Type parameters:
- T
stream namespace.
- Value parameters:
- codec
codec used for the tlv records contained in the stream.
- Source:
- Tlv.scala
Concrete fields
Length-prefixed truncated millisatoshi (1 to 9 bytes unsigned).
Length-prefixed truncated millisatoshi (1 to 9 bytes unsigned).
- Source:
- Tlv.scala
Length-prefixed truncated uint16 (1 to 3 bytes unsigned integer).
Length-prefixed truncated uint16 (1 to 3 bytes unsigned integer).
- Source:
- Tlv.scala
Length-prefixed truncated uint32 (1 to 5 bytes unsigned integer).
Length-prefixed truncated uint32 (1 to 5 bytes unsigned integer).
- Source:
- Tlv.scala
Length-prefixed truncated uint64 (1 to 9 bytes unsigned integer).
Length-prefixed truncated uint64 (1 to 9 bytes unsigned integer).
- Source:
- Tlv.scala
Length-prefixed truncated long (1 to 9 bytes unsigned integer).
Length-prefixed truncated long (1 to 9 bytes unsigned integer).
- Source:
- Tlv.scala
Truncated millisatoshi (0 to 8 bytes unsigned). This codec can be safely
used for values < 2^63
and will fail otherwise.
Truncated millisatoshi (0 to 8 bytes unsigned). This codec can be safely
used for values < 2^63
and will fail otherwise.
- Source:
- Tlv.scala
Truncated millisatoshi (0 to 4 bytes unsigned).
Truncated millisatoshi (0 to 4 bytes unsigned).
- Source:
- Tlv.scala
Truncated uint16 (0 to 2 bytes unsigned integer).
Truncated uint16 (0 to 2 bytes unsigned integer).
- Source:
- Tlv.scala
Truncated uint32 (0 to 4 bytes unsigned integer).
Truncated uint32 (0 to 4 bytes unsigned integer).
- Source:
- Tlv.scala
Truncated uint64 (0 to 8 bytes unsigned integer). The encoder minimally-encodes every value, and the decoder verifies that values are minimally-encoded. Note that this codec can only be used at the very end of a TLV record.
Truncated uint64 (0 to 8 bytes unsigned integer). The encoder minimally-encodes every value, and the decoder verifies that values are minimally-encoded. Note that this codec can only be used at the very end of a TLV record.
- Source:
- Tlv.scala
Truncated long (0 to 8 bytes unsigned integer). This codec can be safely
used for values < 2^63
and will fail otherwise.
Truncated long (0 to 8 bytes unsigned integer). This codec can be safely
used for values < 2^63
and will fail otherwise.
- Source:
- Tlv.scala