显示缓冲区对象的键(索引):
var buf = Buffer.from('abc');for (x of buf.keys()) { console.log(x);}
var buf = Buffer.from('abc');
for (x of buf.keys()) {
console.log(x);
}
keys() 方法返回一个迭代对象,该对象包含缓冲区对象中每个字节的键。
keys()
buffer .keys();