Get the UUID value
()
| 49 | |
| 50 | // Get the UUID value |
| 51 | func (fm *FinalModelUUID) Get() (UUID, int, error) { |
| 52 | if (fm.buffer.Offset() + fm.FBEOffset() + fm.FBESize()) > fm.buffer.Size() { |
| 53 | return UUIDNil(), 0, errors.New("model is broken") |
| 54 | } |
| 55 | |
| 56 | return ReadUUID(fm.buffer.Data(), fm.buffer.Offset() + fm.FBEOffset()), fm.FBESize(), nil |
| 57 | } |
| 58 | |
| 59 | // Set the UUID value |
| 60 | func (fm *FinalModelUUID) Set(value UUID) (int, error) { |