Method: Rugged::OdbObject#len
- Defined in:
- ext/rugged/rugged_repo.c
permalink #size ⇒ Object
Return the size in bytes of the Git object after decompression. This is also the size of the obj.data
buffer.
odb_obj.size #=> 231
83 84 85 86 87 88 |
# File 'ext/rugged/rugged_repo.c', line 83
static VALUE rb_git_odbobj_size(VALUE self)
{
git_odb_object *obj;
TypedData_Get_Struct(self, git_odb_object, &rugged_odb_object_type, obj);
return INT2FIX(git_odb_object_size(obj));
}
|