stringDecoder.write(buffer)


版本历史
版本变更
v8.0.0

每个无效的字符(而不是字节)现在都由一个替换字符代替。

v0.1.99

新增于: v0.1.99

返回已解码的字符串,确保从返回的字符串中省略 BufferTypedArrayDataView 末尾的任何不完整的多字节字符,并将其存储在内部缓冲区中,以备下次调用 stringDecoder.write()stringDecoder.end() 时使用。

\Returns a decoded string, ensuring that any incomplete multibyte characters at the end of the Buffer, or TypedArray, or DataView are omitted from the returned string and stored in an internal buffer for the next call to stringDecoder.write() or stringDecoder.end().

AltStyle によって変換されたページ (->オリジナル) /