853280
回复 (8)
S
引用 sumory你写错了吧?var b = new Buffer(256);
@ggaaooppeenngg 你到底设么意思?没听懂。正确的用法应该是你选择一种编码方式将字符串保存进Buffer,然后再以这种编码方式读取啊
G
S
G
G
引用 sumory你写错了吧?var b = new Buffer(256);
@sumory 真的,,但是我看文档有段话是这样的 'binary' - A way of encoding raw binary data into strings by using only the first 8 bits of each character. This encoding method is deprecated and should be avoided in favor of Buffer objects where possible. This encoding will be removed in future versions of Node. 好像不能用的意思,就以为没办法了。
S
G
S
你写错了吧?var b = new Buffer(256);
参与回复
登录后即可参与回复。登录