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

Method Write

gapis/memory/pool.go:134–138  ·  view source on GitHub ↗

Write copies the data src to the address dst.

(dst uint64, src Data)

Source from the content-addressed store, hash-verified

132
133// Write copies the data src to the address dst.
134func (m *Pool) Write(dst uint64, src Data) {
135 rng := Range{Base: dst, Size: src.Size()}
136 i := interval.Replace(&m.writes, rng.Span())
137 m.writes[i].src = src
138}
139
140// Strlen returns the run length of bytes starting from ptr before a 0 byte is
141// reached.

Calls 3

SpanMethod · 0.95
SizeMethod · 0.65
ReplaceMethod · 0.45