mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-28 03:28:47 +00:00
fix #669
This commit is contained in:
@@ -76,13 +76,7 @@ namespace YooAsset
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the computed hash value.
|
/// Gets the computed hash value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint CRCValue
|
public uint CRCValue { private set; get; }
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return _currentCrc;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="CRC32Algorithm"/> class.
|
/// Initializes a new instance of the <see cref="CRC32Algorithm"/> class.
|
||||||
@@ -115,6 +109,8 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected override byte[] HashFinal()
|
protected override byte[] HashFinal()
|
||||||
{
|
{
|
||||||
|
CRCValue = _currentCrc;
|
||||||
|
|
||||||
if (BitConverter.IsLittleEndian)
|
if (BitConverter.IsLittleEndian)
|
||||||
return new[] { (byte)_currentCrc, (byte)(_currentCrc >> 8), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 24) };
|
return new[] { (byte)_currentCrc, (byte)(_currentCrc >> 8), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 24) };
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user