Assert that uuid.UUID is length 16. DecodeUUIDValue decodes a value encoded by EncodeUUIDValue.
(b []byte)
| 2274 | |
| 2275 | // DecodeUUIDValue decodes a value encoded by EncodeUUIDValue. |
| 2276 | func DecodeUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) { |
| 2277 | b, err = decodeValueTypeAssert(b, UUID) |
| 2278 | if err != nil { |
| 2279 | return b, u, err |
| 2280 | } |
| 2281 | return DecodeUntaggedUUIDValue(b) |
| 2282 | } |
| 2283 | |
| 2284 | // DecodeUntaggedUUIDValue decodes a value encoded by EncodeUntaggedUUIDValue. |
| 2285 | func DecodeUntaggedUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) { |
no test coverage detected
searching dependent graphs…