This commit is contained in:
ikpil 2023-08-05 11:27:23 +09:00
parent 1104e2276e
commit 8ed6a86113
1 changed files with 9 additions and 13 deletions

View File

@ -19,15 +19,15 @@ using System;
namespace DotRecast.Detour.TileCache.Io.Compress namespace DotRecast.Detour.TileCache.Io.Compress
{ {
/** /**
* Core of FastLZ compression algorithm. * Core of FastLZ compression algorithm.
* *
* This class provides methods for compression and decompression of buffers and saves * This class provides methods for compression and decompression of buffers and saves
* constants which use by FastLzFrameEncoder and FastLzFrameDecoder. * constants which use by FastLzFrameEncoder and FastLzFrameDecoder.
* *
* This is refactored code of <a href="https://code.google.com/p/jfastlz/">jfastlz</a> * This is refactored code of <a href="https://code.google.com/p/jfastlz/">jfastlz</a>
* library written by William Kinney. * library written by William Kinney.
*/ */
public class FastLz public static class FastLz
{ {
private const int MAX_DISTANCE = 8191; private const int MAX_DISTANCE = 8191;
private const int MAX_FARDISTANCE = 65535 + MAX_DISTANCE - 1; private const int MAX_FARDISTANCE = 65535 + MAX_DISTANCE - 1;
@ -689,9 +689,5 @@ namespace DotRecast.Detour.TileCache.Io.Compress
return (data[offset + 1] & 0xff) << 8 | data[offset] & 0xff; return (data[offset + 1] & 0xff) << 8 | data[offset] & 0xff;
} }
private FastLz()
{
}
} }
} }