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

Method MustGet

gapis/memory/pool.go:218–223  ·  view source on GitHub ↗

MustGet returns the Pool with the given id, or panics if it's not found.

(id PoolID)

Source from the content-addressed store, hash-verified

216
217// MustGet returns the Pool with the given id, or panics if it's not found.
218func (m *Pools) MustGet(id PoolID) *Pool {
219 if p, ok := m.pools[id]; ok {
220 return p
221 }
222 panic(fmt.Errorf("Pool %v not found", id))
223}
224
225// ApplicationPool returns the application memory pool.
226func (m *Pools) ApplicationPool() *Pool {

Callers 2

LoadSliceFunction · 0.80
MemoryWriterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected