MCPcopy Index your code
hub / github.com/git/git / packet_reader_init

Function packet_reader_init

pkt-line.c:607–622  ·  view source on GitHub ↗

Packet Reader Functions */

Source from the content-addressed store, hash-verified

605
606/* Packet Reader Functions */
607void packet_reader_init(struct packet_reader *reader, int fd,
608 char *src_buffer, size_t src_len,
609 int options)
610{
611 memset(reader, 0, sizeof(*reader));
612
613 reader->fd = fd;
614 reader->src_buffer = src_buffer;
615 reader->src_len = src_len;
616 reader->buffer = packet_buffer;
617 reader->buffer_size = sizeof(packet_buffer);
618 reader->options = options;
619 reader->me = "git";
620 reader->hash_algo = &hash_algos[GIT_HASH_SHA1_LEGACY];
621 strbuf_init(&reader->scratch, 0);
622}
623
624enum packet_read_status packet_reader_read(struct packet_reader *reader)
625{

Callers 15

find_commonFunction · 0.85
do_fetch_pack_v2Function · 0.85
negotiate_using_fetchFunction · 0.85
upload_packFunction · 0.85
handshakeFunction · 0.85
get_bundle_uriFunction · 0.85
parse_git_refsFunction · 0.85
check_smart_httpFunction · 0.85
send_packFunction · 0.85
process_requestFunction · 0.85
unpackFunction · 0.85
unpack_sidebandFunction · 0.85

Calls 1

strbuf_initFunction · 0.85

Tested by 3

unpackFunction · 0.68
unpack_sidebandFunction · 0.68
cmd__proc_receiveFunction · 0.68