OSDN Git Service

Refactor file entry checksum calculation.
authorrelan <relan@users.noreply.github.com>
Thu, 15 Dec 2016 05:19:52 +0000 (08:19 +0300)
committerrelan <relan@users.noreply.github.com>
Mon, 26 Dec 2016 07:01:18 +0000 (10:01 +0300)
commit386a87abe72cbacc68c0bac82384a8db4940c2a9
treeb76a3d549d85101e97ae20b378a67949f5876eb5
parenta061c5c65a3e3ddb646200966cf7ba5f51ef09ca
Refactor file entry checksum calculation.

Move actual algorithm implementation into add_checksum_byte() function.
Avoid utf16_length() call: we already have valid file name length.
Avoid extra data copying: take it from the name buffer instead of making
a temporary file name entry.
libexfat/utils.c