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

Function odb_write_stream_from_fd

odb/streaming.c:328–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void odb_write_stream_from_fd(struct odb_write_stream *stream, int fd,
329 size_t size)
330{
331 struct read_object_fd_data *data;
332
333 CALLOC_ARRAY(data, 1);
334 data->fd = fd;
335 data->remaining = size;
336
337 stream->data = data;
338 stream->read = read_object_fd;
339 stream->is_finished = 0;
340}

Callers 1

index_fdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected