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

Method GetMaxStringLength

msgp/read.go:263–268  ·  view source on GitHub ↗

GetMaxStringLength will return the current string length limit.

()

Source from the content-addressed store, hash-verified

261
262// GetMaxStringLength will return the current string length limit.
263func (m *Reader) GetMaxStringLength() uint64 {
264 if m.maxStrLen <= 0 {
265 return math.MaxUint64
266 }
267 return min(m.maxStrLen, math.MaxUint64)
268}
269
270// recursiveCall will increment the recursion depth and return an error if it is exceeded.
271// If a nil error is returned, done must be called to decrement the counter.

Callers 5

ReadMapKeyMethod · 0.95
ReadMapKeyPtrMethod · 0.95
ReadStringAsBytesMethod · 0.95
ReadStringMethod · 0.95
rwStringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected