Table of Contents

Class DictionaryCompression

Namespace
FishMMO.Shared
Assembly
FishMMO-SharedUtility.dll

Extension methods for compressing and decompressing dictionaries using GZip. Uses manual binary serialization for security and performance.

public static class DictionaryCompression
Inheritance
DictionaryCompression
Inherited Members

Methods

ReadFromGZipFile(string)

Reads and decompresses a dictionary from a GZip file.

public static Dictionary<long, string> ReadFromGZipFile(string filePath)

Parameters

filePath string

Returns

Dictionary<long, string>

WriteToGZipFile(Dictionary<long, string>, string)

Serializes and compresses a dictionary to a GZip file.

public static void WriteToGZipFile(this Dictionary<long, string> dictionary, string filePath)

Parameters

dictionary Dictionary<long, string>
filePath string