MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / copy_from

Method copy_from

dep/agg/include/agg_rendering_buffer.h:270–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 //--------------------------------------------------------------------
269 template <class RenBuf>
270 void copy_from(const RenBuf& src)
271 {
272 unsigned h = height();
273 if (src.height() < h)
274 h = src.height();
275
276 unsigned l = stride_abs();
277 if (src.stride_abs() < l)
278 l = src.stride_abs();
279
280 l *= sizeof(T);
281
282 unsigned y;
283 unsigned w = width();
284 for (y = 0; y < h; y++)
285 {
286 std::memcpy(row_ptr(0, y, w), src.row_ptr(y), l);
287 }
288 }
289
290 //--------------------------------------------------------------------
291 void clear(T value)

Callers

nothing calls this directly

Calls 3

heightMethod · 0.45
stride_absMethod · 0.45
row_ptrMethod · 0.45

Tested by

no test coverage detected