(byte)
| 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; |
no test coverage detected