Schema to encode a boolean in TLV.

MatterSpecification.v10.Core § A.11.3

Hierarchy (view full)

Constructors

Methods

  • Decodes the encoded data using the schema.

    Parameters

    • encoded: Uint8Array
    • Optionalvalidate: boolean

    Returns boolean

  • Parameters

    • encoded: Uint8Array

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns {
        tag?: TlvTag;
        value: boolean;
    }

    • Optionaltag?: TlvTag
    • value: boolean
  • Parameters

    Returns boolean

  • Encodes the value using the schema.

    Parameters

    • value: boolean

    Returns Uint8Array

  • Parameters

    • value: boolean

    Returns Uint8Array

  • Parameters

    Returns TlvStream

  • Parameters

    Returns void

  • Parameters

    • value: boolean
    • _fieldId: number
    • _fieldValue: any
    • _injectChecker: ((fieldValue: any) => boolean)
        • (fieldValue): boolean
        • Parameters

          • fieldValue: any

          Returns boolean

    Returns boolean

  • Parameters

    • value: boolean
    • _fieldId: number
    • _removeChecker: ((fieldValue: any) => boolean)
        • (fieldValue): boolean
        • Parameters

          • fieldValue: any

          Returns boolean

    Returns boolean

  • Optional validator that can be used to enforce constraints on the data before encoding / after decoding.

    Parameters

    • value: boolean

    Returns void