Assert that uuid.UUID is length 16. DecodeUUIDValue decodes a value encoded by EncodeUUIDValue.
(b []byte)
| 3155 | |
| 3156 | // DecodeUUIDValue decodes a value encoded by EncodeUUIDValue. |
| 3157 | func DecodeUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) { |
| 3158 | b, err = decodeValueTypeAssert(b, UUID) |
| 3159 | if err != nil { |
| 3160 | return b, u, err |
| 3161 | } |
| 3162 | return DecodeUntaggedUUIDValue(b) |
| 3163 | } |
| 3164 | |
| 3165 | // DecodeUntaggedUUIDValue decodes a value encoded by EncodeUntaggedUUIDValue. |
| 3166 | func DecodeUntaggedUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) { |
no test coverage detected
searching dependent graphs…