()
| 363 | } |
| 364 | |
| 365 | func (object *OdbObject) Type() ObjectType { |
| 366 | ret := ObjectType(C.git_odb_object_type(object.ptr)) |
| 367 | runtime.KeepAlive(object) |
| 368 | return ret |
| 369 | } |
| 370 | |
| 371 | // Data returns a slice pointing to the unmanaged object memory. You must make |
| 372 | // sure the object is referenced for at least as long as the slice is used. |