mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
Update HuffmanDecoder.cs
Fix constructor visibility error; Change to big endian 32 bit.
This commit is contained in:
parent
e3236c0fbd
commit
4d5be92386
@ -45,7 +45,7 @@ namespace GameRes.Formats.DxLib
|
||||
public int ParentNode; // index of parent node.
|
||||
public int[] ChildNode; //two children nodes, -1 if not existent.
|
||||
|
||||
DXA8HuffmanNode()
|
||||
internal DXA8HuffmanNode()
|
||||
{
|
||||
bitArray = new byte[32];
|
||||
ChildNode = new int[2];
|
||||
@ -338,9 +338,9 @@ namespace GameRes.Formats.DxLib
|
||||
{
|
||||
if (0 == m_bit_count)
|
||||
{
|
||||
m_bits = LittleEndian.ToUInt64 (m_input, m_src);
|
||||
m_src += 8;
|
||||
m_bit_count = 64;
|
||||
m_bits = BigEndian.ToUInt32 (m_input, m_src);
|
||||
m_src += 4;
|
||||
m_bit_count = 32;
|
||||
}
|
||||
bits = bits << 1 | (m_bits & 1);
|
||||
m_bits >>= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user