MCPcopy Create free account
hub / github.com/libgit2/pygit2 / Object__pointer__get__

Function Object__pointer__get__

src/object.c:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132PyDoc_STRVAR(Object__pointer__doc__, "Get the object's pointer. For internal use only.");
133PyObject *
134Object__pointer__get__(Object *self)
135{
136 /* Bytes means a raw buffer */
137 if (Object__load(self) == NULL) { return NULL; } // Lazy load
138 return PyBytes_FromStringAndSize((char *) &self->obj, sizeof(git_object *));
139}
140
141PyDoc_STRVAR(Object_name__doc__,
142 "Name (or None if the object was not reached through a tree)");

Callers

nothing calls this directly

Calls 1

Object__loadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…