SetMaxStringLength sets the maximum number of bytes to allow in strings. Setting this == 0 will allow any number of elements - math.MaxUint64.
(d uint64)
| 256 | // SetMaxStringLength sets the maximum number of bytes to allow in strings. |
| 257 | // Setting this == 0 will allow any number of elements - math.MaxUint64. |
| 258 | func (m *Reader) SetMaxStringLength(d uint64) { |
| 259 | m.maxStrLen = d |
| 260 | } |
| 261 | |
| 262 | // GetMaxStringLength will return the current string length limit. |
| 263 | func (m *Reader) GetMaxStringLength() uint64 { |