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

Function add_object_buffer

builtin/unpack-objects.c:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static void add_object_buffer(struct object *object, char *buffer, unsigned long size)
54{
55 struct obj_buffer *obj;
56 CALLOC_ARRAY(obj, 1);
57 obj->buffer = buffer;
58 obj->size = size;
59 if (add_decoration(&obj_decorate, object, obj))
60 die("object %s tried to add buffer twice!", oid_to_hex(&object->oid));
61}
62
63/*
64 * Make sure at least "min" bytes are available in the buffer, and

Callers 1

write_objectFunction · 0.85

Calls 3

add_decorationFunction · 0.85
oid_to_hexFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected