Misc.odin

CompressString

CompressString (text: string) -> CompressedString

CompressString compresses a string to save space in memory this works best for English but will still work on other languages

Parameters:
  • text: The string to compress
Returns: The string after it has undergone compresion

UncompressString

UncompressString (compressed_text: CompressedString) -> string

UncompressString decompresses a CompressedString back to a normal string

Parameters:
  • compressed_text: The compressed string
Returns: The original string