>> bufferBuffer对象是全局对象Buffer支持的编码方式:ascii, utf8, base64, binarynew Buffer(size)new Buffer(array)new Buffer(str, encoding='utf8') buffer.write(str,offset=0, encoding='utf8')buffer.toString(encoding, start=0, end=buffer.length); buffer[index] Buffer.b…