diff options
Diffstat (limited to 'doc/api/string_decoder.md')
-rw-r--r-- | doc/api/string_decoder.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index f979e7dd37..06b97bab48 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -18,13 +18,22 @@ console.log(decoder.write(euro)); ``` ## Class: StringDecoder +<!-- YAML +added: v0.1.99 +--> Accepts a single argument, `encoding` which defaults to `'utf8'`. ### decoder.end() +<!-- YAML +added: v0.9.3 +--> Returns any trailing bytes that were left in the buffer. ### decoder.write(buffer) +<!-- YAML +added: v0.1.99 +--> Returns a decoded string. |