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

Function ReadIntfBytes

msgp/read_bytes.go:1195–1197  ·  view source on GitHub ↗

ReadIntfBytes attempts to read the next object out of 'b' as a raw interface{} and return the remaining bytes.

(b []byte)

Source from the content-addressed store, hash-verified

1193// the next object out of 'b' as a raw interface{} and
1194// return the remaining bytes.
1195func ReadIntfBytes(b []byte) (i any, o []byte, err error) {
1196 return readIntfBytesDepth(b, 0)
1197}
1198
1199func readIntfBytesDepth(b []byte, depth int) (i any, o []byte, err error) {
1200 if depth >= recursionLimit {

Callers 5

TestCompactFloatsFunction · 0.92
TestReadIntfBytesFunction · 0.85
TestReadIntfRecursionFunction · 0.85
FuzzReadBytesFunction · 0.85
TestEncodeDecodeFunction · 0.85

Calls 1

readIntfBytesDepthFunction · 0.85

Tested by 5

TestCompactFloatsFunction · 0.74
TestReadIntfBytesFunction · 0.68
TestReadIntfRecursionFunction · 0.68
FuzzReadBytesFunction · 0.68
TestEncodeDecodeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…