LeviLamina
Loading...
Searching...
No Matches
DictionaryCompressionUtil.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7
8// auto generated forward declare list
9// clang-format off
10class BinaryStream;
11// clang-format on
12
13namespace DictionaryCompressionUtil {
14// functions
15// NOLINTBEGIN
16MCAPI ::std::set<::std::string> _getDictionary(::std::string const& input);
17
18MCAPI ::std::set<::std::string> _pruneDictionary(::std::map<::std::string, uint64>& foundStrings);
19
20MCAPI void _tryCompressToken(::std::string const& token, ::std::set<::std::string>& dictionary, ::BinaryStream& stream);
21
22MCAPI ::std::string dictionaryCompressString(::std::string const& originalString);
23
24MCAPI ::Bedrock::Result<::std::string> dictionaryDecompressString(::std::string const& compressedString);
25// NOLINTEND
26
27// static variables
28// NOLINTBEGIN
29MCAPI ::std::string const& DICTIONARY_COMPRESSION_INDICATOR();
30// NOLINTEND
31
32} // namespace DictionaryCompressionUtil
Definition BinaryStream.h:10