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

Function ReadBytesBytes

msgp/read_bytes.go:792–794  ·  view source on GitHub ↗

ReadBytesBytes reads a 'bin' object from 'b' and returns its vaue and the remaining bytes in 'b'. Possible errors: - [ErrShortBytes] (too few bytes) - [TypeError] (not a 'bin' object)

(b []byte, scratch []byte)

Source from the content-addressed store, hash-verified

790// - [ErrShortBytes] (too few bytes)
791// - [TypeError] (not a 'bin' object)
792func ReadBytesBytes(b []byte, scratch []byte) (v []byte, o []byte, err error) {
793 return readBytesBytes(b, scratch, false)
794}
795
796func readBytesBytes(b []byte, scratch []byte, zc bool) (v []byte, o []byte, err error) {
797 l := len(b)

Callers 5

UnmarshalMsgMethod · 0.92
TestReadBytesBytesFunction · 0.85
FuzzReadBytesFunction · 0.85
readIntfBytesDepthFunction · 0.85

Calls 1

readBytesBytesFunction · 0.85

Tested by 4

UnmarshalMsgMethod · 0.74
TestReadBytesBytesFunction · 0.68
FuzzReadBytesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…