MCPcopy Create free account
hub / github.com/google/gapid / PointerToString

Function PointerToString

gapis/memory/pointer.go:123–132  ·  view source on GitHub ↗

PointerToString returns a string representation of the pointer.

(p Pointer)

Source from the content-addressed store, hash-verified

121
122// PointerToString returns a string representation of the pointer.
123func PointerToString(p Pointer) string {
124 addr := p.Address()
125 if addr < lowMem {
126 return fmt.Sprint(addr)
127 }
128 if addr < bits32 {
129 return fmt.Sprintf("0x%.8x", addr)
130 }
131 return fmt.Sprintf("0x%.16x", addr)
132}

Callers 1

StringMethod · 0.85

Calls 2

SprintMethod · 0.80
AddressMethod · 0.65

Tested by

no test coverage detected