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

Method SetMaxElements

msgp/read.go:244–246  ·  view source on GitHub ↗

SetMaxElements sets the maximum number of elements to allow in map, bin, array or extension payload. Setting this to 0 will allow any number of elements - math.MaxUint32. This does currently apply to generated code.

(d uint32)

Source from the content-addressed store, hash-verified

242// Setting this to 0 will allow any number of elements - math.MaxUint32.
243// This does currently apply to generated code.
244func (m *Reader) SetMaxElements(d uint32) {
245 m.maxElements = d
246}
247
248// GetMaxElements will return the maximum number of elements in a map, bin, array or extension payload.
249func (m *Reader) GetMaxElements() uint32 {

Callers 1

FuzzReaderFunction · 0.95

Calls

no outgoing calls

Tested by 1

FuzzReaderFunction · 0.76