Delegate MaskGatherKernel
Copies, in order, every slab of src whose mask byte is non-zero into consecutive slabs of
dst; returns the number of slabs written (see the file header for the contract).
public delegate long MaskGatherKernel(byte* src, byte* mask, long count, long slabBytes, byte* dst)
Parameters
srcbyte*The first slab of the source (C-contiguous slabs).
maskbyte*The mask, one byte per slab.
countlongThe number of mask bytes (= source slabs).
slabByteslongThe slab size in bytes; read only by a kind-0 kernel.
dstbyte*The destination, room for one slab per non-zero mask byte.
Returns
- long
- Copies, in order, every slab of src whose mask byte is non-zero into consecutive slabs of dst; returns the number of slabs written (see the file header for the contract).