Skip to content

Commit

Permalink
doc: add added: information for string_decoder
Browse files Browse the repository at this point in the history
Derived from git history.

Ref: nodejs#6578
  • Loading branch information
bengl committed May 6, 2016
1 parent 98b534f commit e8ded84
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/api/string_decoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit e8ded84

Please sign in to comment.