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)
| 242 | // Setting this to 0 will allow any number of elements - math.MaxUint32. |
| 243 | // This does currently apply to generated code. |
| 244 | func (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. |
| 249 | func (m *Reader) GetMaxElements() uint32 { |