Buffer.compare(buf1, buf2)
- buf1 {Buffer}
- buf2 {Buffer}
- 返回:{Number}
const arr = [Buffer.from('1234'), Buffer.from('0123')];arr.sort(Buffer.compare);
本文共 263 字,大约阅读时间需要 1 分钟。
Buffer.compare(buf1, buf2)
const arr = [Buffer.from('1234'), Buffer.from('0123')];arr.sort(Buffer.compare);
转载于:https://www.cnblogs.com/lalalagq/p/9908509.html