(buf, start, end)
| 1147 | } |
| 1148 | |
| 1149 | function utf16leSlice (buf, start, end) { |
| 1150 | var bytes = buf.slice(start, end) |
| 1151 | var res = '' |
| 1152 | for (var i = 0; i < bytes.length; i += 2) { |
| 1153 | res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256)) |
| 1154 | } |
| 1155 | return res |
| 1156 | } |
| 1157 | |
| 1158 | Buffer.prototype.slice = function slice (start, end) { |
| 1159 | var len = this.length |
no outgoing calls
no test coverage detected
searching dependent graphs…