Lines Matching refs:StringDecoder
14 const { StringDecoder } = require('string_decoder');
17 The following example shows the basic use of the `StringDecoder` class.
20 const { StringDecoder } = require('string_decoder');
21 const decoder = new StringDecoder('utf8');
30 When a `Buffer` instance is written to the `StringDecoder` instance, an
39 const { StringDecoder } = require('string_decoder');
40 const decoder = new StringDecoder('utf8');
47 ## Class: `StringDecoder`
49 ### `new StringDecoder([encoding])` argument
54 * `encoding` {string} The character [encoding][] the `StringDecoder` will use.
57 Creates a new `StringDecoder` instance.