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

Function ReadMapStrIntfBytes

msgp/read_bytes.go:1141–1143  ·  view source on GitHub ↗

ReadMapStrIntfBytes reads a map[string]interface{} out of 'b' and returns the map and remaining bytes. If 'old' is non-nil, the values will be read into that map.

(b []byte, old map[string]any)

Source from the content-addressed store, hash-verified

1139// out of 'b' and returns the map and remaining bytes.
1140// If 'old' is non-nil, the values will be read into that map.
1141func ReadMapStrIntfBytes(b []byte, old map[string]any) (v map[string]any, o []byte, err error) {
1142 return readMapStrIntfBytesDepth(b, old, 0)
1143}
1144
1145func readMapStrIntfBytesDepth(b []byte, old map[string]any, depth int) (v map[string]any, o []byte, err error) {
1146 if depth >= recursionLimit {

Callers 4

TestReadIntfRecursionFunction · 0.85
FuzzReadBytesFunction · 0.85
TestRemoveFunction · 0.85
TestReplaceFunction · 0.85

Calls 1

readMapStrIntfBytesDepthFunction · 0.85

Tested by 4

TestReadIntfRecursionFunction · 0.68
FuzzReadBytesFunction · 0.68
TestRemoveFunction · 0.68
TestReplaceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…