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 standard library. Private Function
fnloadBuf(node: *Node) []u8 {
// `size` can only ever grow, so the buffer returned by this function is// always valid memory.constsize = @atomicLoad(Size, &node.size, .monotonic);
return@as([*]u8, @ptrCast(node))[0..size.toInt()][@sizeOf(Node)..];
}