(buffers, hashFunction)
| 54 | * @returns {string} hash |
| 55 | */ |
| 56 | const hashForName = (buffers, hashFunction) => { |
| 57 | const hash = createHash(hashFunction); |
| 58 | for (const buf of buffers) hash.update(buf); |
| 59 | return hash.digest("hex"); |
| 60 | }; |
| 61 | |
| 62 | const COMPRESSION_CHUNK_SIZE = 100 * 1024 * 1024; |
| 63 | const DECOMPRESSION_CHUNK_SIZE = 100 * 1024 * 1024; |
no test coverage detected