Write copies the data src to the address dst.
(dst uint64, src Data)
| 132 | |
| 133 | // Write copies the data src to the address dst. |
| 134 | func (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. |