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