DecodeBytesValue decodes a value encoded by EncodeBytesValue.
(b []byte)
| 2956 | |
| 2957 | // DecodeBytesValue decodes a value encoded by EncodeBytesValue. |
| 2958 | func DecodeBytesValue(b []byte) (remaining []byte, data []byte, err error) { |
| 2959 | b, err = decodeValueTypeAssert(b, Bytes) |
| 2960 | if err != nil { |
| 2961 | return b, nil, err |
| 2962 | } |
| 2963 | return DecodeUntaggedBytesValue(b) |
| 2964 | } |
| 2965 | |
| 2966 | // DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue. |
| 2967 | func DecodeUntaggedBytesValue(b []byte) (remaining, data []byte, err error) { |
no test coverage detected
searching dependent graphs…