| 2509 | } |
| 2510 | |
| 2511 | static uint32_t zip_read_u32le(const unsigned char *p) { |
| 2512 | return ((uint32_t)p[0]) | ((uint32_t)p[1] << BYTE_SHIFT) | |
| 2513 | ((uint32_t)p[2] << (BYTE_SHIFT * CLI_PAIR_LEN)) | |
| 2514 | ((uint32_t)p[3] << (BYTE_SHIFT * CLI_JSON_INDENT)); |
| 2515 | } |
| 2516 | |
| 2517 | /* Decompress a single zip entry (stored or deflated). Returns malloc'd buffer |
| 2518 | * or NULL on failure. *out_len receives the decompressed size. */ |
no outgoing calls
no test coverage detected