libgit2

git_object__size

Version:

Get the size in bytes for the structure which acts as an in-memory representation of any given object type.

For all the core types, this would the equivalent of calling sizeof(git_commit) if the core types were not opaque on the external API.

Signature

size_t git_object__size(git_object_t type);

Parameters

In
type

object type to get its size

Returns

size_t

size in bytes of the object

Versions