Analyzes a buffer of raw object content and determines its validity. Tree, commit, and tag objects will be parsed and ensured that they are valid, parseable content. (Blobs are always valid by definition.) An error message will be set with an informative message if the object is not valid.
Output pointer to set with validity of the object content
The contents to validate
The length of the buffer
0 on success or an error code