MCPcopy Index your code
hub / github.com/feross/buffer / hexSlice

Function hexSlice

index.js:1071–1082  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

1069}
1070
1071function 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
1084function utf16leSlice (buf, start, end) {
1085 const bytes = buf.slice(start, end)

Callers 1

slowToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…