MCPcopy Create free account
hub / github.com/reactjs/react-rails / hexSlice

Function hexSlice

lib/assets/javascripts/JSXTransformer.js:965–976  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

963}
964
965function 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
978function utf16leSlice (buf, start, end) {
979 var bytes = buf.slice(start, end)

Callers 1

JSXTransformer.jsFile · 0.85

Calls 1

toHexFunction · 0.85

Tested by

no test coverage detected