9 lines
408 B
C#
9 lines
408 B
C#
using System;
|
|
|
|
namespace AssetStudio;
|
|
public class LZ4Inv : LZ4
|
|
{
|
|
public new static LZ4Inv Instance => new();
|
|
protected override (int encCount, int litCount) GetLiteralToken(ReadOnlySpan<byte> cmp, ref int cmpPos) => ((cmp[cmpPos] >> 4) & 0xf, (cmp[cmpPos++] >> 0) & 0xf);
|
|
protected override int GetChunkEnd(ReadOnlySpan<byte> cmp, ref int cmpPos) => cmp[cmpPos++] << 8 | cmp[cmpPos++] << 0;
|
|
} |