MCPcopy Create free account
hub / github.com/git/git / update

Method update

src/hash.rs:159–161  ·  view source on GitHub ↗

Update the hasher with the specified data.

(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

157
158 /// Update the hasher with the specified data.
159 fn update(&mut self, data: &[u8]) {
160 unsafe { c::git_hash_update(self.ctx, data.as_ptr() as *const c_void, data.len()) };
161 }
162
163 /// Return an object ID, consuming the hasher.
164 fn into_oid(self) -> ObjectID {

Callers 3

p4CmdFunction · 0.80
writeMethod · 0.80
hasher_works_correctlyFunction · 0.80

Calls 2

git_hash_updateFunction · 0.85
lenMethod · 0.80

Tested by 1

hasher_works_correctlyFunction · 0.64