Given the raw content of an object, determine the object ID. This prepends the object header to the given data, and hashes the results with the hash corresponding to the given oid_type.
the raw object content
the length of the given buffer
0 on success, or an error code