MCPcopy
hub / github.com/tinygo-org/tinygo / Get

Method Get

cgo/sync.go:34–38  ·  view source on GitHub ↗

Get returns a stored value previously inserted with Put. Use the same reference as you got from Put.

(ref unsafe.Pointer)

Source from the content-addressed store, hash-verified

32// Get returns a stored value previously inserted with Put. Use the same
33// reference as you got from Put.
34func (m *refMap) Get(ref unsafe.Pointer) interface{} {
35 m.lock.Lock()
36 defer m.lock.Unlock()
37 return m.refs[ref]
38}
39
40// Remove deletes a single reference from the map.
41func (m *refMap) Remove(ref unsafe.Pointer) {

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected