(data: Buffer[])
| 65 | return Buffer.from([0x05, 0x00]); |
| 66 | } |
| 67 | static encodeSet(data: Buffer[]): Buffer { |
| 68 | assert(data.length === 1, 'Only one item in the set is supported. We\'d need to sort the data to support more.'); |
| 69 | // We expect the data to be already sorted. |
| 70 | return this._encode(0x31, Buffer.concat(data)); |
| 71 | } |
| 72 | static encodeExplicitContextDependent(tag: number, data: Buffer): Buffer { |
| 73 | return this._encode(0xa0 + tag, data); |
| 74 | } |
no test coverage detected