MCPcopy Create free account
hub / github.com/UI5/webcomponents / hexSlice

Function hexSlice

packages/main/test/pages/diffable-html.js:1136–1147  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

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)

Callers 1

slowToStringFunction · 0.85

Calls 1

toHexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…