MCPcopy
hub / github.com/creationix/js-git / indexOf

Function indexOf

lib/object-codec.js:242–249  ·  view source on GitHub ↗
(buffer, byte, i)

Source from the content-addressed store, hash-verified

240}
241
242function indexOf(buffer, byte, i) {
243 i |= 0;
244 var length = buffer.length;
245 for (;;i++) {
246 if (i >= length) return -1;
247 if (buffer[i] === byte) return i;
248 }
249}
250
251function parseOct(buffer, start, end) {
252 var val = 0;

Callers 4

decodeTreeFunction · 0.85
decodeCommitFunction · 0.85
decodeTagFunction · 0.85
deframeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected