(buf, start, end)
| 3666 | } |
| 3667 | |
| 3668 | function hexSlice (buf, start, end) { |
| 3669 | var len = buf.length |
| 3670 | |
| 3671 | if (!start || start < 0) start = 0 |
| 3672 | if (!end || end < 0 || end > len) end = len |
| 3673 | |
| 3674 | var out = '' |
| 3675 | for (var i = start; i < end; ++i) { |
| 3676 | out += toHex(buf[i]) |
| 3677 | } |
| 3678 | return out |
| 3679 | } |
| 3680 | |
| 3681 | function utf16leSlice (buf, start, end) { |
| 3682 | var bytes = buf.slice(start, end) |
no test coverage detected
searching dependent graphs…