method StringDecoder.prototype.end
Usage in Deno
```typescript import { StringDecoder } from "node:node__string_decoder.d.ts"; ```
StringDecoder.prototype.end(buffer?: string
| Buffer
| ArrayBufferView): string
Returns 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.
string