MCPcopy Create free account
hub / github.com/git/git / packet_length

Function packet_length

pkt-line.c:377–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377int 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
387static const char *find_packfile_uri_path(const char *buffer)
388{

Callers 2

check_pktlineFunction · 0.85
packet_read_with_statusFunction · 0.85

Calls 1

hexvalFunction · 0.85

Tested by

no test coverage detected