Searched refs:textEncoder (Results 1 – 8 of 8) sorted by relevance
29 const textEncoder = new TextEncoder() constant54 typeof source === 'string' ? textEncoder.encode(source) : source131 const chunk = textEncoder.encode(prefix +137 const chunk = textEncoder.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"` +151 const chunk = textEncoder.encode(`--${boundary}--`)
31 const textEncoder = new TextEncoder('utf-8') constant61 const bytes = textEncoder.encode(
33 const textEncoder = new TextEncoder('utf-8'); constant46 return new Pair(s, textEncoder.encode(s).buffer);
242 const textEncoder = new TextEncoder('utf-8');243 return textEncoder.encode(s);
25 const textEncoder = new goog.global['TextEncoder']('utf-8');26 return s => s.length === 0 ? new Uint8Array(0) : textEncoder.encode(s);
1903 ### `textEncoder.encode([input])`1911 ### `textEncoder.encodeInto(src, dest)`1929 ### `textEncoder.encoding`
9981 var textEncoder = new TextEncoder();9992 const buffer = typeof source === "string" ? textEncoder.encode(source) : source;10030 … const chunk2 = textEncoder.encode(prefix + `; name="${escape(normalizeLinefeeds(name))}"\r10037 …const chunk2 = textEncoder.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"` + (value…10049 const chunk = textEncoder.encode(`--${boundary}--`);
1974 …/github.com/nodejs/node/commit/8113220690)] - **doc**: pass string to `textEncoder.encode` as inpu…