ReadStringBytes reads a 'str' object from 'b' and returns its value and the remaining bytes in 'b'. Possible errors: - [ErrShortBytes] (b not long enough) - [TypeError] (not 'str' type) - [InvalidPrefixError]
(b []byte)
| 987 | // - [TypeError] (not 'str' type) |
| 988 | // - [InvalidPrefixError] |
| 989 | func ReadStringBytes(b []byte) (string, []byte, error) { |
| 990 | v, o, err := ReadStringZC(b) |
| 991 | return string(v), o, err |
| 992 | } |
| 993 | |
| 994 | // ReadStringAsBytes reads a 'str' object |
| 995 | // into a slice of bytes. 'v' is the value of |
searching dependent graphs…