ParseDUuidFromBytes parses and returns the *DUuid Datum value represented by the provided input bytes, or an error.
(b []byte)
| 388 | // ParseDUuidFromBytes parses and returns the *DUuid Datum value represented |
| 389 | // by the provided input bytes, or an error. |
| 390 | func ParseDUuidFromBytes(b []byte) (*DUuid, error) { |
| 391 | uv, err := uuid.FromBytes(b) |
| 392 | if err != nil { |
| 393 | return nil, MakeParseError(string(b), types.Uuid, err) |
| 394 | } |
| 395 | return NewDUuid(DUuid{uv}), nil |
| 396 | } |
| 397 | |
| 398 | // ParseDIPAddrFromINetString parses and returns the *DIPAddr Datum value |
| 399 | // represented by the provided input INet string, or an error. |
no test coverage detected
searching dependent graphs…