MCPcopy
hub / github.com/microsoft/playwright / encodePrintableString

Method encodePrintableString

packages/utils/crypto.ts:75–77  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

73 return this._encode(0xa0 + tag, data);
74 }
75 static encodePrintableString(data: string): Buffer {
76 return this._encode(0x13, Buffer.from(data));
77 }
78 static encodeBitString(data: Buffer): Buffer {
79 // The first byte of the content is the number of unused bits at the end
80 const unusedBits = 0; // Assuming all bits are used

Callers 1

Calls 2

_encodeMethod · 0.95
fromMethod · 0.45

Tested by

no test coverage detected