MsgPack format decoder.

Constructor

new(input:Input)

Parameters:

input

Encoded MsgPack data to be decoded. Property bigEndian will be set true.

Variables

read onlyinput:Input

Current Input instance.

@:value(2147483647)maxArrayLength:Int = 2147483647

Maximum number of elements in an array.

If the decoder encounters a size too big, it will throw DecodeError.

@:value(2147483647)maxBytesLength:Int = 2147483647

Maximum length of Bytes object.

If the decoder encounters a size too big, it will throw DecodeError.

@:value(2147483647)maxMapSize:Int = 2147483647

Maximum number of keys in a map.

If the decoder encounters a size too big, it will throw DecodeError.

@:value(2147483647)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.

decode():Any

Recursive decode and return the object.

decodeArray(arrayLength:Int):Array<Any>

inlinedecodeBin(byteLength:Int):Bytes

inlinedecodeExt(byteLength:Int):Extension

inlinedecodeFixarray(value:Int):Array<Any>

inlinedecodeFixmap(value:Int):Any

inlinedecodeFixstring(value:Int):String

inlinedecodeInt64():Any

decodeMap(mapSize:Int):Any

inlinedecodeNegativeFixint(value:Int):Int

inlinedecodePositiveFixint(value:Int):Int

inlinedecodeString(byteLength:Int):String

inlinedecodeUint32():Any

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.

reset(input:Input):Void

Reset the decoder for reuse.