Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

repeat16u8

aegis.repeat16u8
inline fn repeat16u8(comptime count: usize, part: [16]u8) [16 * count]u8

File

lib/std/crypto/aegis.zig:60

Code

inline fn repeat16u8(comptime count: usize, part: [16]u8) [16 * count]u8 {
    const buf: [count][part.len]u8 = @splat(part);
    const ptr: *const [16 * count]u8 = @ptrCast(&buf);
    return ptr.*;
}