class Decoder
package llama
MsgPack format decoder.
Constructor
new(input:Input)
Parameters:
input | Encoded MsgPack data to be decoded.
Property |
---|
Variables
maxArrayLength:Int = 2147483647
Maximum number of elements in an array.
If the decoder encounters a size too big, it will throw DecodeError
.
maxBytesLength:Int = 2147483647
Maximum length of Bytes
object.
If the decoder encounters a size too big, it will throw DecodeError
.
maxMapSize:Int = 2147483647
Maximum number of keys in a map.
If the decoder encounters a size too big, it will throw DecodeError
.
maxRecursionDepth:Int = 2147483647
Maximum recursive depth of the decoder.
If the decoder recurses beyond the specified depth, it will throw DecodeError
.
Methods
dynamiccustomDecoder(decoder:Decoder, formatByte:Int):Any
A callback that will be called when the decoder encounters an unknown format byte.
dynamicextensionDecoder(decoder:Decoder, extension:Extension):Any
A callback that will be called whenever an extension type is encountered.
dynamicmapFactory():MapType
A callback that will be called to create a map instance whenever a map needs to be decoded.
The default map is AssociativeArray
.