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

Method SetMaxStringLength

msgp/read.go:258–260  ·  view source on GitHub ↗

SetMaxStringLength sets the maximum number of bytes to allow in strings. Setting this == 0 will allow any number of elements - math.MaxUint64.

(d uint64)

Source from the content-addressed store, hash-verified

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

Callers 1

FuzzReaderFunction · 0.95

Calls

no outgoing calls

Tested by 1

FuzzReaderFunction · 0.76