(buf, start, end)
| 1069 | } |
| 1070 | |
| 1071 | function hexSlice (buf, start, end) { |
| 1072 | const len = buf.length |
| 1073 | |
| 1074 | if (!start || start < 0) start = 0 |
| 1075 | if (!end || end < 0 || end > len) end = len |
| 1076 | |
| 1077 | let out = '' |
| 1078 | for (let i = start; i < end; ++i) { |
| 1079 | out += hexSliceLookupTable[buf[i]] |
| 1080 | } |
| 1081 | return out |
| 1082 | } |
| 1083 | |
| 1084 | function utf16leSlice (buf, start, end) { |
| 1085 | const bytes = buf.slice(start, end) |
no outgoing calls
no test coverage detected
searching dependent graphs…