| 427 | }; |
| 428 | |
| 429 | static int |
| 430 | Blob_getbuffer(Blob *self, Py_buffer *view, int flags) |
| 431 | { |
| 432 | if (Object__load((Object*)self) == NULL) { return -1; } // Lazy load |
| 433 | return PyBuffer_FillInfo(view, (PyObject *) self, |
| 434 | (void *) git_blob_rawcontent(self->blob), |
| 435 | git_blob_rawsize(self->blob), 1, flags); |
| 436 | } |
| 437 | |
| 438 | static PyBufferProcs Blob_as_buffer = { |
| 439 | (getbufferproc)Blob_getbuffer, |
nothing calls this directly
no test coverage detected
searching dependent graphs…