withPlane - multiple declarations
Function withPlane
Visits any validated affine read plane. The callback is synchronous and
receives no raw pointer; load preserves arbitrary signed strides.
bool withPlane(T)(
scope const ref RasterView!T view,
size_t planeIndex,
scope nothrow @nogc @safe void delegate(ref scope const RasterPlaneWindow!T window) callback
) nothrow @nogc @safe;
Function withPlane
Visits any validated affine writable plane without exposing a pointer.
bool withPlane(T)(
scope ref WritableRasterView!T view,
size_t planeIndex,
scope nothrow @nogc @safe void delegate(ref scope WritableRasterPlaneWindow!T window) callback
) nothrow @nogc @safe;
Example
Example rejecting an invalid affine writable-plane request.
import raster;
WritableRasterView!ubyte view;
assert(!withPlane!ubyte(view, 0, null));