| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,13 +18,22 @@ console.log(decoder.write(euro)); | |||
| 18 | 18 | ``` | |
| 19 | 19 | ||
| 20 | 20 | ## Class: StringDecoder | |
| 21 | + <!-- YAML | ||
| 22 | + added: v0.1.99 | ||
| 23 | + --> | ||
| 21 | 24 | ||
| 22 | 25 | Accepts a single argument, `encoding` which defaults to `'utf8'`. | |
| 23 | 26 | ||
| 24 | 27 | ### decoder.end() | |
| 28 | + <!-- YAML | ||
| 29 | + added: v0.9.3 | ||
| 30 | + --> | ||
| 25 | 31 | ||
| 26 | 32 | Returns any trailing bytes that were left in the buffer. | |
| 27 | 33 | ||
| 28 | 34 | ### decoder.write(buffer) | |
| 35 | + <!-- YAML | ||
| 36 | + added: v0.1.99 | ||
| 37 | + --> | ||
| 29 | 38 | ||
| 30 | 39 | Returns a decoded string. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments