Module OdbObject
Class "OdbObject".
Functions
OdbObject:data () | object method. |
OdbObject:free () | Destroy this object (will be called by Garbage Collector). |
OdbObject:id () | object method. |
OdbObject:size () | object method. |
OdbObject:type () | object method. |
Functions
- OdbObject:data ()
-
object method.
Calls git_odb_object_data:
This is the uncompressed, raw data as read from the ODB, without the leading header.
This pointer is owned by the object and shall not be free'd.
Calls git_odb_object_size:
This is the real size of the `data` buffer, not the actual size of the object.
Return value:
string
. - OdbObject:free ()
-
Destroy this object (will be called by Garbage Collector).
Calls git_odb_object_free:
This method must always be called once a `git_odb_object` is no longer needed, otherwise memory will leak.
- OdbObject:id ()
-
object method.
Calls git_odb_object_id:
This is the OID from which the object was read from
Return value:
OID. - OdbObject:size ()
-
object method.
Calls git_odb_object_size:
This is the real size of the `data` buffer, not the actual size of the object.
Return value:
integer
. - OdbObject:type ()
-
object method.
Calls git_odb_object_type:
Return value:
string
.