(buf, start, end)
| 3679 | } |
| 3680 | |
| 3681 | function utf16leSlice (buf, start, end) { |
| 3682 | var bytes = buf.slice(start, end) |
| 3683 | var res = '' |
| 3684 | for (var i = 0; i < bytes.length; i += 2) { |
| 3685 | res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256)) |
| 3686 | } |
| 3687 | return res |
| 3688 | } |
| 3689 | |
| 3690 | Buffer.prototype.slice = function slice (start, end) { |
| 3691 | var len = this.length |
no outgoing calls
no test coverage detected
searching dependent graphs…