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 standard library.
std › zig › Client › serveBuildSteps Public Function serveBuildSteps Doc Source Public Function std.zig.Client.serveBuildSteps
pub fn serveBuildSteps (
c : *const Client ,
steps : []const Configuration .Step .Index ,
flags : OutMessage .BuildSteps .Flags ,
) !void Params File zig/Client.zig: 164
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180 pub fn serveBuildSteps (
c : *const Client ,
steps : []const Configuration .Step .Index ,
flags : OutMessage .BuildSteps .Flags ,
) !void {
try c .serveMessageHeader (.{
.tag = .bsp_build_steps ,
.bytes_len = @intCast (@sizeOf (OutMessage .BuildSteps ) + steps .len * @sizeOf (Configuration .Step .Index )),
});
const body : OutMessage .BuildSteps = .{
.step_count = @intCast (steps .len ),
.flags = flags ,
};
try c .out .writeStruct (body , .little );
try c .out .writeSliceEndian (Configuration .Step .Index , steps , .little );
try c .out .flush ();
}