GetBytesMut returns the UUID as a mutable byte slice. Unlike GetBytes, it does not necessarily incur an allocation if the return value escapes. Instead, the return value escaping will cause the method's receiver (and any struct that it is a part of) to escape. Use only if GetBytes is causing an allo
()
| 67 | // any struct that it is a part of) to escape. Use only if GetBytes is causing |
| 68 | // an allocation and the UUID is already on the heap. |
| 69 | func (u *UUID) GetBytesMut() []byte { |
| 70 | return u.bytesMut() |
| 71 | } |
| 72 | |
| 73 | // ToUint128 returns the UUID as a Uint128. |
| 74 | func (u UUID) ToUint128() utils.Uint128 { |