WowAddons

World of Warcraft Forever API · C_EncodingUtil.md, for your AI

C_EncodingUtil

10 functions, 5 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_EncodingUtil.CompressString

output = C_EncodingUtil.CompressString(source, [method], [level])

May return nothing.

Arguments

sourcestringView
methodCompressionMethod default "Deflate"
levelCompressionLevel default "Default"

Returns

outputstring

C_EncodingUtil.DecodeBase64

output = C_EncodingUtil.DecodeBase64(source, [variant])

May return nothing.

Arguments

sourcestringView
variantBase64Variant default "Standard"

Returns

outputstring

C_EncodingUtil.DecodeHex

output = C_EncodingUtil.DecodeHex(source)

May return nothing.

Arguments

sourcestring

Returns

outputstring

C_EncodingUtil.DecompressString

output = C_EncodingUtil.DecompressString(source, [method])

May return nothing.

Arguments

sourcestringView
methodCompressionMethod default "Deflate"

Returns

outputstring

C_EncodingUtil.DeserializeCBOR

value = C_EncodingUtil.DeserializeCBOR(source)

Arguments

sourcestringView

Returns

valueLuaValueVariant may be nil

C_EncodingUtil.DeserializeJSON

value = C_EncodingUtil.DeserializeJSON(source)

Arguments

sourcestring

Returns

valueLuaValueVariant may be nil

C_EncodingUtil.EncodeBase64

output = C_EncodingUtil.EncodeBase64(source, [variant])

May return nothing.

Arguments

sourcestringView
variantBase64Variant default "Standard"

Returns

outputstring

C_EncodingUtil.EncodeHex

output = C_EncodingUtil.EncodeHex(source)

May return nothing.

Arguments

sourcestringView

Returns

outputstring

C_EncodingUtil.SerializeCBOR

output = C_EncodingUtil.SerializeCBOR([value], [options])

Arguments

valueLuaValueVariant may be nil
optionsCBORSerializationOptions may be nil

Returns

outputstring

C_EncodingUtil.SerializeJSON

output = C_EncodingUtil.SerializeJSON([value], [options])

Arguments

valueLuaValueVariant may be nil
optionsJSONSerializationOptions may be nil

Returns

outputstring

Tables

Enum.Base64Variant enumeration

Standard0
StandardUrlSafe1

Enum.CompressionLevel enumeration

Default0
OptimizeForSpeed1
OptimizeForSize2

Enum.CompressionMethod enumeration

Deflate0
Zlib1
Gzip2

CBORSerializationOptions structure

ignoreSerializationErrorsbool default falseIf true, attempt to ignore errors from unsupported values and instead replace them where applicable with 'undefined' CBOR items.

JSONSerializationOptions structure

ignoreSerializationErrorsbool default falseIf true, attempt to ignore errors from unsupported values and instead replace them where applicable with 'null' JSON values.

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows