ParseDUuidFromBytes parses and returns the *DUuid Datum value represented by the provided input bytes, or an error.
(b []byte)
| 339 | // ParseDUuidFromBytes parses and returns the *DUuid Datum value represented |
| 340 | // by the provided input bytes, or an error. |
| 341 | func ParseDUuidFromBytes(b []byte) (*DUuid, error) { |
| 342 | uv, err := uuid.FromBytes(b) |
| 343 | if err != nil { |
| 344 | return nil, makeParseError(string(b), types.Uuid, err) |
| 345 | } |
| 346 | return NewDUuid(DUuid{uv}), nil |
| 347 | } |
| 348 | |
| 349 | // ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value |
| 350 | // represented by the provided input INet string, or an error. |
no test coverage detected
searching dependent graphs…