(bufs, len)
| 904 | } |
| 905 | |
| 906 | function mergeBuf(bufs, len) { |
| 907 | if (bufs.length === 0) { |
| 908 | return kEmptyBuffer; |
| 909 | } |
| 910 | |
| 911 | if (bufs.length === 1) { |
| 912 | return bufs[0]; |
| 913 | } |
| 914 | |
| 915 | return Buffer.concat(bufs, len); |
| 916 | } |
| 917 | |
| 918 | module.exports = Utf8Stream; |
no test coverage detected
searching dependent graphs…