diff options
| author | 2025-11-28 08:00:00 +0800 | |
|---|---|---|
| committer | 2025-11-28 08:00:00 +0800 | |
| commit | d3eaa1808fe1aeaa316d81fcde6ebb6079a3980e (patch) | |
| tree | a709b41eca77dc6dc9d34a447aa1143ee328fd55 /hash.go | |
| parent | zlibx: Add more comprehensive tests (diff) | |
| signature | No signature | |
hash: data after size
This guarantees ... I guess ABI stability of where the size is,
regardless of the version which may have different maxHashSize.
Not too useful but I guess good practice
Diffstat (limited to 'hash.go')
| -rw-r--r-- | hash.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,8 +10,8 @@ const maxHashSize = 32 // Hash represents a Git object ID. type Hash struct { - data [maxHashSize]byte size int + data [maxHashSize]byte } // hashFunc is a function that computes a hash from input data. |
