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

Function write

lib/sha1.js:98–110  ·  view source on GitHub ↗
(byte)

Source from the content-addressed store, hash-verified

96 }
97
98 function write(byte) {
99 block[offset] |= (byte & 0xff) << shift;
100 if (shift) {
101 shift -= 8;
102 }
103 else {
104 offset++;
105 shift = 24;
106 }
107 if (offset === 16) {
108 processBlock();
109 }
110 }
111
112 function updateString(string) {
113 var length = string.length;

Callers 3

updateStringFunction · 0.85
updateFunction · 0.85
digestFunction · 0.85

Calls 1

processBlockFunction · 0.85

Tested by

no test coverage detected