csum-file: add hashwrite_be64()
authorRené Scharfe <redacted>
Thu, 12 Nov 2020 12:20:19 +0000 (13:20 +0100)
committerJunio C Hamano <redacted>
Thu, 12 Nov 2020 17:40:06 +0000 (09:40 -0800)
commit54273d1042b7a7e9a5635ccf15363eec819cb951
tree146d60f4db4a74b8bf564da41f7d627e1ed2bacb
parent898f80736c75878acc02dc55672317fcc0e0a5a6
csum-file: add hashwrite_be64()

Add a helper function for hashing and writing 64-bit integers in network
byte order.  It returns the number of written bytes.  This simplifies
callers that keep track of the file offset, even though this number is a
constant.

Suggested-by: Derrick Stolee <redacted>
Original-patch-by: Taylor Blau <redacted>
Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
csum-file.h
git clone https://git.99rst.org/PROJECT