Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/util/tlv"

Index

Functions

Object literals

Functions

decode

  • decode(data: any): {}

encode

  • encode(type: any, data: any, ...args: any[]): Buffer

Object literals

Const Tag

Tag: object

Type Length Value encoding/decoding, used by HAP as a wire format. https://en.wikipedia.org/wiki/Type-length-value

Originally based on code from github:KhaosT/HAP-NodeJS@0c8fd88 used used per the terms of the Apache Software License v2.

Original code copyright Khaos Tian khaos.tian@gmail.com

Modifications copyright Zach Bean zb@forty2.com

  • Reformatted for ES6-style module
  • Rewrote encode() to be non-recursive; also simplified the logic
  • Rewrote decode()

BackOff

BackOff: number = 8

EncryptedData

EncryptedData: number = 5

ErrorCode

ErrorCode: number = 7

MFiCertificate

MFiCertificate: number = 9

MFiSignature

MFiSignature: number = 10

PairingMethod

PairingMethod: number = 0

Proof

Proof: number = 4

PublicKey

PublicKey: number = 3

Salt

Salt: number = 2

Sequence

Sequence: number = 6

Signature

Signature: number = 10

Username

Username: number = 1

Generated using TypeDoc