MCPcopy
hub / github.com/btmills/geopattern / updateString

Function updateString

lib/sha1.js:112–118  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

110 }
111
112 function updateString(string) {
113 var length = string.length;
114 totalLength += length * 8;
115 for (var i = 0; i < length; i++) {
116 write(string.charCodeAt(i));
117 }
118 }
119
120 // The user gave us more data. Store it!
121 function update(chunk) {

Callers 1

updateFunction · 0.85

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected