| 375 | } |
| 376 | |
| 377 | int packet_length(const char lenbuf_hex[4], size_t size) |
| 378 | { |
| 379 | if (size < 4) |
| 380 | BUG("buffer too small"); |
| 381 | return hexval(lenbuf_hex[0]) << 12 | |
| 382 | hexval(lenbuf_hex[1]) << 8 | |
| 383 | hexval(lenbuf_hex[2]) << 4 | |
| 384 | hexval(lenbuf_hex[3]); |
| 385 | } |
| 386 | |
| 387 | static const char *find_packfile_uri_path(const char *buffer) |
| 388 | { |
no test coverage detected