nodejs_buffer.concat
2021-03-30 04:25
标签:返回 api 长度 数组 red console ons container head Buffer.concat(list[, totalLength]) nodejs_buffer.concat 标签:返回 api 长度 数组 red console ons container head 原文地址:https://www.cnblogs.com/Syinho/p/12600462.html
node.js文档
var buf1=Buffer.alloc(10,0);
var buf2=Buffer.alloc(11,0);
var buf3=Buffer.alloc(5,0);
var len=buf1.length+buf2.length+buf3.length;
console.log(`len:${len}`);//26
const bufA=Buffer.concat([buf1,buf2,buf3],len);
console.log(bufA);
//
文章标题:nodejs_buffer.concat
文章链接:http://soscw.com/index.php/essay/69823.html