feature. See also
. The project being documented here (as the example) is the Zig library itself.
argon2.processBlocks
fn processBlocks(
blocks: *Blocks,
time: u32,
memory: u32,
threads: u24,
mode: Mode,
io: Io,
) Io.Cancelable!void
File
Code
fn processBlocks(
blocks: *Blocks,
time: u32,
memory: u32,
threads: u24,
mode: Mode,
io: Io,
) Io.Cancelable!void {
const lanes = memory / threads;
const segments = lanes / sync_points;
if (builtin.single_threaded or threads == 1) {
processBlocksSync(blocks, time, memory, threads, mode, lanes, segments);
} else {
try processBlocksAsync(blocks, time, memory, threads, mode, lanes, segments, io);
}
}