MCPcopy
hub / github.com/tinylib/msgp / GetMaxRecursionDepth

Method GetMaxRecursionDepth

msgp/read.go:234–239  ·  view source on GitHub ↗

GetMaxRecursionDepth returns the maximum recursion depth. Set to 0 to use the default value of 100000.

()

Source from the content-addressed store, hash-verified

232// GetMaxRecursionDepth returns the maximum recursion depth.
233// Set to 0 to use the default value of 100000.
234func (m *Reader) GetMaxRecursionDepth() int {
235 if m.maxRecursionDepth <= 0 {
236 return recursionLimit
237 }
238 return m.maxRecursionDepth
239}
240
241// SetMaxElements sets the maximum number of elements to allow in map, bin, array or extension payload.
242// Setting this to 0 will allow any number of elements - math.MaxUint32.

Callers 1

recursiveCallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected