| 51 | } |
| 52 | |
| 53 | static 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 |
no test coverage detected