MCPcopy Index your code
hub / github.com/microsoft/playwright / encodeSet

Method encodeSet

packages/utils/crypto.ts:67–71  ·  view source on GitHub ↗
(data: Buffer[])

Source from the content-addressed store, hash-verified

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 }

Callers 1

Calls 2

_encodeMethod · 0.95
assertFunction · 0.90

Tested by

no test coverage detected