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

Function set_packet_header

pkt-line.c:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void set_packet_header(char *buf, int size)
135{
136 static char hexchar[] = "0123456789abcdef";
137
138 #define hex(a) (hexchar[(a) & 15])
139 buf[0] = hex(size >> 12);
140 buf[1] = hex(size >> 8);
141 buf[2] = hex(size >> 4);
142 buf[3] = hex(size);
143 #undef hex
144}
145
146static void format_packet(struct strbuf *out, const char *prefix,
147 const char *fmt, va_list args)

Callers 4

rpc_read_from_outFunction · 0.85
format_packetFunction · 0.85
do_packet_writeFunction · 0.85
packet_fwriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected