Home
last modified time | relevance | path

Searched refs:StringDecoder (Results 1 – 25 of 42) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-string-decoder.js26 const StringDecoder = require('string_decoder').StringDecoder; constant
29 let decoder = new StringDecoder();
34 StringDecoder.call(decoder2);
90 decoder = new StringDecoder('utf8');
111 decoder = new StringDecoder('utf8');
115 decoder = new StringDecoder('utf8');
119 decoder = new StringDecoder('utf8');
124 decoder = new StringDecoder('utf8');
128 decoder = new StringDecoder('utf8');
134 decoder = new StringDecoder('utf8');
[all …]
Dtest-worker-execargv.js9 const { StringDecoder } = require('string_decoder');
10 const decoder = new StringDecoder('utf8');
Dtest-string-decoder-fuzz.js3 const { StringDecoder } = require('string_decoder');
28 const sd = new StringDecoder(enc);
Dtest-string-decoder-end.js29 const SD = require('string_decoder').StringDecoder;
/third_party/node/doc/api/
Dstring_decoder.md14 const { StringDecoder } = require('node:string_decoder');
17 The following example shows the basic use of the `StringDecoder` class.
20 const { StringDecoder } = require('node:string_decoder');
21 const decoder = new StringDecoder('utf8');
30 When a `Buffer` instance is written to the `StringDecoder` instance, an
39 const { StringDecoder } = require('node:string_decoder');
40 const decoder = new StringDecoder('utf8');
47 ## Class: `StringDecoder`
49 ### `new StringDecoder([encoding])` argument
55 * `encoding` {string} The character [encoding][] the `StringDecoder` will use.
[all …]
/third_party/node/lib/
Dstring_decoder.js82 function StringDecoder(encoding) { class
95 StringDecoder.prototype.write = function write(buf) {
115 StringDecoder.prototype.end = function end(buf) {
131 StringDecoder.prototype.text = function text(buf, offset) {
137 ObjectDefineProperties(StringDecoder.prototype, {
167 exports.StringDecoder = StringDecoder;
Dassert.js330 const { StringDecoder } = require('string_decoder');
331 decoder = new StringDecoder('utf8');
/third_party/node/src/
Dstring_decoder-inl.h10 void StringDecoder::SetEncoding(enum encoding encoding) { in SetEncoding()
16 enum encoding StringDecoder::Encoding() const { in Encoding()
20 unsigned StringDecoder::BufferedBytes() const { in BufferedBytes()
24 unsigned StringDecoder::MissingBytes() const { in MissingBytes()
28 char* StringDecoder::IncompleteCharacterBuffer() { in IncompleteCharacterBuffer()
Dstring_decoder.cc66 MaybeLocal<String> StringDecoder::DecodeData(Isolate* isolate, in DecodeData()
237 MaybeLocal<String> StringDecoder::FlushData(Isolate* isolate) { in FlushData()
267 StringDecoder* decoder = in DecodeData()
268 reinterpret_cast<StringDecoder*>(Buffer::Data(args[0])); in DecodeData()
282 StringDecoder* decoder = in FlushData()
283 reinterpret_cast<StringDecoder*>(Buffer::Data(args[0])); in FlushData()
300 Integer::New(isolate, StringDecoder::name)).FromJust() in InitializeStringDecoder()
329 Integer::New(isolate, sizeof(StringDecoder))).Check(); in InitializeStringDecoder()
Dstring_decoder.h10 class StringDecoder {
12 StringDecoder() { state_[kEncodingField] = BUFFER; } in StringDecoder() function
/third_party/node/deps/npm/node_modules/string_decoder/lib/
Dstring_decoder.js78 exports.StringDecoder = StringDecoder;
79 function StringDecoder(encoding) { class
107 StringDecoder.prototype.write = function (buf) {
123 StringDecoder.prototype.end = utf8End;
126 StringDecoder.prototype.text = utf8Text;
129 StringDecoder.prototype.fillLast = function (buf) {
/third_party/node/benchmark/string_decoder/
Dstring-decoder-create.js3 const StringDecoder = require('string_decoder').StringDecoder; constant
15 new StringDecoder(encoding);
Dstring-decoder.js3 const StringDecoder = require('string_decoder').StringDecoder; constant
33 const sd = new StringDecoder(isBase64 ? 'base64' : encoding);
/third_party/node/deps/npm/node_modules/iconv-lite/encodings/
Dinternal.js49 var StringDecoder = require('string_decoder').StringDecoder; variable
51 if (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method.
52 StringDecoder.prototype.end = function() {};
56 this.decoder = new StringDecoder(codec.enc);
/third_party/node/deps/undici/src/lib/fileapi/
Dutil.js15 const { StringDecoder } = require('string_decoder')
247 const decoder = new StringDecoder('latin1')
300 const decoder = new StringDecoder('latin1')
/third_party/node/lib/internal/
Dencoding.js456 let StringDecoder;
458 if (StringDecoder === undefined)
459 ({ StringDecoder } = require('string_decoder')); field
460 return StringDecoder;
Dv8_prof_polyfill.js85 const dec = new (require('string_decoder').StringDecoder)('utf-8');
/third_party/node/deps/npm/node_modules/node-gyp/node_modules/readable-stream/lib/
D_stream_readable.js73 var StringDecoder; variable
158 if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
159 this.decoder = new StringDecoder(options.encoding);
301 if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
302 var decoder = new StringDecoder(enc);
/third_party/node/lib/internal/readline/
DemitKeypressEvents.js22 const { StringDecoder } = require('string_decoder');
37 stream[KEYPRESS_DECODER] = new StringDecoder('utf8');
Dinterface.js69 const { StringDecoder } = require('string_decoder');
299 this[kDecoder] = new StringDecoder('utf8');
/third_party/node/lib/internal/child_process/
Dserialization.js12 const { StringDecoder } = require('string_decoder');
141 channel[kStringDecoder] = new StringDecoder('utf8');
/third_party/node/lib/internal/crypto/
Dcipher.js64 const { StringDecoder } = require('string_decoder');
96 decoder = decoder || new StringDecoder(encoding);
/third_party/node/deps/npm/node_modules/readable-stream/lib/internal/streams/
Dreadable.js66 const { StringDecoder } = require('string_decoder')
163 this.decoder = new StringDecoder(options.encoding)
295 const decoder = new StringDecoder(enc)
/third_party/node/lib/internal/streams/
Dreadable.js76 const { StringDecoder } = require('string_decoder');
182 this.decoder = new StringDecoder(options.encoding);
357 const decoder = new StringDecoder(enc);
/third_party/protobuf/python/google/protobuf/internal/
Dtype_checkers.py396 _FieldDescriptor.TYPE_STRING: decoder.StringDecoder,

12