diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index cde81e6ae5ec2b..1360763ac08fac 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -66,6 +66,16 @@ substitution characters appropriate for the character encoding. If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input. +### stringDecoder.reset([encoding]) + + +* `encoding` {string} The character encoding the `StringDecoder` will use. + Defaults to the current `encoding` of the decoder. + +Flushes all the internal data and the decoder will behave like a new object. + ### stringDecoder.write(buffer)