Browse Source

doc: add `added:` info for `string_decoder`

PR-URL: https://github.com/nodejs/node/pull/6741
Ref: https://github.com/nodejs/node/issues/6578
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
v4.x
Rich Trott 9 years ago
committed by Myles Borins
parent
commit
5b50b1c255
  1. 9
      doc/api/string_decoder.md

9
doc/api/string_decoder.md

@ -18,13 +18,22 @@ console.log(decoder.write(euro));
``` ```
## Class: StringDecoder ## Class: StringDecoder
<!-- YAML
added: v0.1.99
-->
Accepts a single argument, `encoding` which defaults to `'utf8'`. Accepts a single argument, `encoding` which defaults to `'utf8'`.
### decoder.end() ### decoder.end()
<!-- YAML
added: v0.9.3
-->
Returns any trailing bytes that were left in the buffer. Returns any trailing bytes that were left in the buffer.
### decoder.write(buffer) ### decoder.write(buffer)
<!-- YAML
added: v0.1.99
-->
Returns a decoded string. Returns a decoded string.

Loading…
Cancel
Save