mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Refactor TeleDisk LZH class.
This commit is contained in:
@@ -381,14 +381,13 @@ namespace DiscImageChef.Compression
|
|||||||
short DecodePosition()
|
short DecodePosition()
|
||||||
{
|
{
|
||||||
short bit;
|
short bit;
|
||||||
ushort j;
|
|
||||||
|
|
||||||
/* decode upper 6 bits from given table */
|
/* decode upper 6 bits from given table */
|
||||||
if((bit = (short)GetByte()) < 0) return -1;
|
if((bit = (short)GetByte()) < 0) return -1;
|
||||||
|
|
||||||
ushort i = (ushort)bit;
|
ushort i = (ushort)bit;
|
||||||
ushort c = (ushort)(d_code[i] << 6);
|
ushort c = (ushort)(d_code[i] << 6);
|
||||||
j = d_len[i];
|
ushort j = d_len[i];
|
||||||
|
|
||||||
/* input lower 6 bits directly */
|
/* input lower 6 bits directly */
|
||||||
j -= 2;
|
j -= 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user