(buf, start, end)
| 963 | } |
| 964 | |
| 965 | function hexSlice (buf, start, end) { |
| 966 | var len = buf.length |
| 967 | |
| 968 | if (!start || start < 0) start = 0 |
| 969 | if (!end || end < 0 || end > len) end = len |
| 970 | |
| 971 | var out = '' |
| 972 | for (var i = start; i < end; i++) { |
| 973 | out += toHex(buf[i]) |
| 974 | } |
| 975 | return out |
| 976 | } |
| 977 | |
| 978 | function utf16leSlice (buf, start, end) { |
| 979 | var bytes = buf.slice(start, end) |
no test coverage detected