MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetBytesMut

Method GetBytesMut

postgres/parser/uuid/uuid_wrapper.go:69–71  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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.
69func (u *UUID) GetBytesMut() []byte {
70 return u.bytesMut()
71}
72
73// ToUint128 returns the UUID as a Uint128.
74func (u UUID) ToUint128() utils.Uint128 {

Callers 2

CompareMethod · 0.80
uuid.goFile · 0.80

Calls 1

bytesMutMethod · 0.95

Tested by

no test coverage detected