Type Alias Encodable

Encodable:
    | Uint8Array
    | undefined
    | false
    | EncodableObj
    | EncodableTlv
    | readonly Encodable[]

An object acceptable to Encoder.encode.

  • Uint8Array: prepended as is.
  • undefined and false: skipped.
  • EncodableObj: .encodeTo(encoder) is invoked.
  • EncodableTlv: passed to Encoder.prependTlv.
  • Encodable[]: passed to Encoder.prependValue.