(options)
| 84 | const kEmpty = Buffer.alloc(0); |
| 85 | |
| 86 | function validateChunkSize(options) { |
| 87 | let chunkSize = options.chunkSize; |
| 88 | if (!validateFiniteNumber(chunkSize, 'options.chunkSize')) { |
| 89 | chunkSize = DEFAULT_OUTPUT_SIZE; |
| 90 | } else if (chunkSize < Z_MIN_CHUNK) { |
| 91 | throw new ERR_OUT_OF_RANGE('options.chunkSize', |
| 92 | `>= ${Z_MIN_CHUNK}`, chunkSize); |
| 93 | } |
| 94 | return chunkSize; |
| 95 | } |
| 96 | |
| 97 | function validateDictionary(dictionary) { |
| 98 | if (dictionary === undefined) return undefined; |
no outgoing calls
no test coverage detected
searching dependent graphs…