ReadBytesZC extracts the messagepack-encoded binary field without copying. The returned []byte points to the same memory as the input slice. Possible errors: - [ErrShortBytes] (b not long enough) - [TypeError] (object not 'bin')
(b []byte)
| 864 | // - [ErrShortBytes] (b not long enough) |
| 865 | // - [TypeError] (object not 'bin') |
| 866 | func ReadBytesZC(b []byte) (v []byte, o []byte, err error) { |
| 867 | return readBytesBytes(b, nil, true) |
| 868 | } |
| 869 | |
| 870 | func ReadExactBytes(b []byte, into []byte) (o []byte, err error) { |
| 871 | if len(b) < 1 { |
searching dependent graphs…