Update the hasher with the specified data.
(&mut self, data: &[u8])
| 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 { |