buffer{Buffer|TypedArray|DataView} 包含要解码的字节的Buffer、TypedArray或DataView。- 返回: {string}
返回解码的字符串,会确保返回的字符串不会包含 Buffer、TypedArray 或 DataView 末尾中的任何不完整的多字节字符,并且会将不完整的字符保存在内部的 buffer 中用于下次调用 stringDecoder.write() 或 stringDecoder.end()。
buffer {Buffer|TypedArray|DataView} 包含要解码的字节的 Buffer、TypedArray 或 DataView。返回解码的字符串,会确保返回的字符串不会包含 Buffer、TypedArray 或 DataView 末尾中的任何不完整的多字节字符,并且会将不完整的字符保存在内部的 buffer 中用于下次调用 stringDecoder.write() 或 stringDecoder.end()。
若有收获,就点个赞吧
0 人点赞
让时间为你证明