method StringDecoder.prototype.end
Jump to headingStringDecoder.prototype.end(buffer?: string
 | Buffer
 | ArrayBufferView): stringReturns any remaining input stored in the internal buffer as a string. Bytes representing incomplete UTF-8 and UTF-16 characters will be replaced with 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.
After end() is called, the stringDecoder object can be reused for new input.
Parameters Jump to heading
optional
Jump to headingbuffer: string
 | Buffer
 | ArrayBufferViewThe bytes to decode.
Return Type Jump to heading
string