First commit, step 4 completed
This commit is contained in:
@@ -0,0 +1,242 @@
|
||||
local EncodingUtil =
|
||||
{
|
||||
Name = "EncodingUtil",
|
||||
Type = "System",
|
||||
Namespace = "C_EncodingUtil",
|
||||
Environment = "All",
|
||||
|
||||
Functions =
|
||||
{
|
||||
{
|
||||
Name = "CompressString",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "stringView", Nilable = false },
|
||||
{ Name = "method", Type = "CompressionMethod", Nilable = false, Default = "Deflate" },
|
||||
{ Name = "level", Type = "CompressionLevel", Nilable = false, Default = "Default" },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "DecodeBase64",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "stringView", Nilable = false },
|
||||
{ Name = "variant", Type = "Base64Variant", Nilable = false, Default = "Standard" },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "DecodeHex",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "string", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "DecompressString",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "stringView", Nilable = false },
|
||||
{ Name = "method", Type = "CompressionMethod", Nilable = false, Default = "Deflate" },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "DeserializeCBOR",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "stringView", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "value", Type = "LuaValueVariant", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "DeserializeJSON",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "string", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "value", Type = "LuaValueVariant", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "EncodeBase64",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "stringView", Nilable = false },
|
||||
{ Name = "variant", Type = "Base64Variant", Nilable = false, Default = "Standard" },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "EncodeHex",
|
||||
Type = "Function",
|
||||
MayReturnNothing = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "source", Type = "stringView", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SerializeCBOR",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "value", Type = "LuaValueVariant", Nilable = true },
|
||||
{ Name = "options", Type = "CBORSerializationOptions", Nilable = true },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SerializeJSON",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "value", Type = "LuaValueVariant", Nilable = true },
|
||||
{ Name = "options", Type = "JSONSerializationOptions", Nilable = true },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "output", Type = "string", Nilable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Events =
|
||||
{
|
||||
},
|
||||
|
||||
Tables =
|
||||
{
|
||||
{
|
||||
Name = "Base64Variant",
|
||||
Type = "Enumeration",
|
||||
NumValues = 2,
|
||||
MinValue = 0,
|
||||
MaxValue = 1,
|
||||
Fields =
|
||||
{
|
||||
{ Name = "Standard", Type = "Base64Variant", EnumValue = 0, Documentation = { "Encodes with the alphabet defined in RFC 4648 (with potential padding bytes)" } },
|
||||
{ Name = "StandardUrlSafe", Type = "Base64Variant", EnumValue = 1, Documentation = { "Encodes with the 'URL and Filename Safe' alphabet from RFC 4648 (with potential padding bytes)" } },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "CompressionLevel",
|
||||
Type = "Enumeration",
|
||||
NumValues = 3,
|
||||
MinValue = 0,
|
||||
MaxValue = 2,
|
||||
Fields =
|
||||
{
|
||||
{ Name = "Default", Type = "CompressionLevel", EnumValue = 0 },
|
||||
{ Name = "OptimizeForSpeed", Type = "CompressionLevel", EnumValue = 1 },
|
||||
{ Name = "OptimizeForSize", Type = "CompressionLevel", EnumValue = 2 },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "CompressionMethod",
|
||||
Type = "Enumeration",
|
||||
NumValues = 3,
|
||||
MinValue = 0,
|
||||
MaxValue = 2,
|
||||
Fields =
|
||||
{
|
||||
{ Name = "Deflate", Type = "CompressionMethod", EnumValue = 0 },
|
||||
{ Name = "Zlib", Type = "CompressionMethod", EnumValue = 1 },
|
||||
{ Name = "Gzip", Type = "CompressionMethod", EnumValue = 2 },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "CBORSerializationOptions",
|
||||
Type = "Structure",
|
||||
Fields =
|
||||
{
|
||||
{ Name = "ignoreSerializationErrors", Type = "bool", Nilable = false, Default = false, Documentation = { "If true, attempt to ignore errors from unsupported values and instead replace them where applicable with 'undefined' CBOR items." } },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "JSONSerializationOptions",
|
||||
Type = "Structure",
|
||||
Fields =
|
||||
{
|
||||
{ Name = "ignoreSerializationErrors", Type = "bool", Nilable = false, Default = false, Documentation = { "If true, attempt to ignore errors from unsupported values and instead replace them where applicable with 'null' JSON values." } },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Predicates =
|
||||
{
|
||||
},
|
||||
};
|
||||
|
||||
APIDocumentation:AddDocumentationTable(EncodingUtil);
|
||||
Reference in New Issue
Block a user