(buf, start, end)
| 1134 | } |
| 1135 | |
| 1136 | function hexSlice (buf, start, end) { |
| 1137 | var len = buf.length |
| 1138 | |
| 1139 | if (!start || start < 0) start = 0 |
| 1140 | if (!end || end < 0 || end > len) end = len |
| 1141 | |
| 1142 | var out = '' |
| 1143 | for (var i = start; i < end; ++i) { |
| 1144 | out += toHex(buf[i]) |
| 1145 | } |
| 1146 | return out |
| 1147 | } |
| 1148 | |
| 1149 | function utf16leSlice (buf, start, end) { |
| 1150 | var bytes = buf.slice(start, end) |
no test coverage detected
searching dependent graphs…