Options
All
  • Public
  • Public/Protected
  • All
Menu

配列のエンコード関数をまとめたクラス. Major Typeは4.

Hierarchy

  • ArrayEncoder

Index

Properties

Methods

Properties

Static shiftedMajorType

shiftedMajorType: number = majorType.array.type << 5

1byteで表現されるdata item headerの先頭3bit. 8bitあるうちの先頭3bitにcategory typeを持ってきたいのでmajor typeを5bitシフトさせる.

Methods

Static arrayEncode

  • arrayEncode(arr: any[]): Buffer

Generated using TypeDoc