DecodeBytesValue decodes a value encoded by EncodeBytesValue.
(b []byte)
| 2114 | |
| 2115 | // DecodeBytesValue decodes a value encoded by EncodeBytesValue. |
| 2116 | func DecodeBytesValue(b []byte) (remaining []byte, data []byte, err error) { |
| 2117 | b, err = decodeValueTypeAssert(b, Bytes) |
| 2118 | if err != nil { |
| 2119 | return b, nil, err |
| 2120 | } |
| 2121 | return DecodeUntaggedBytesValue(b) |
| 2122 | } |
| 2123 | |
| 2124 | // DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue. |
| 2125 | func DecodeUntaggedBytesValue(b []byte) (remaining, data []byte, err error) { |
no test coverage detected
searching dependent graphs…