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 › Build › Configuration › Wip › write Public Function write Doc Source Public Function std.Build.Configuration.Wip.write
pub fn write (wip : *Wip , w : *Io .Writer , static : Static ) Io .Writer .Error !void Params File Build/Configuration.zig: 152
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181 pub fn write (wip : *Wip , w : *Io .Writer , static : Static ) Io .Writer .Error !void {
const header : Header = .{
.string_bytes_len = @intCast (wip .string_bytes .items .len ),
.steps_len = @intCast (wip .steps .items .len ),
.path_deps_len = @intCast (wip .path_deps .items .len ),
.unlazy_deps_len = @intCast (wip .unlazy_deps .items .len ),
.system_integrations_len = @intCast (wip .system_integrations .items .len ),
.available_options_len = @intCast (wip .available_options .items .len ),
.search_prefixes_len = @intCast (wip .search_prefixes .items .len ),
.extra_len = @intCast (wip .extra .items .len ),
.default_step = static .default_step ,
.generated_files_len = static .generated_files_len ,
.flags = .{
.poisoned = static .poisoned ,
},
};
var buffers = [_ ][]const u8 {
@ptrCast (&header ),
wip .string_bytes .items ,
@ptrCast (wip .steps .items ),
@ptrCast (wip .path_deps .items ),
@ptrCast (wip .unlazy_deps .items ),
@ptrCast (wip .system_integrations .items ),
@ptrCast (wip .available_options .items ),
@ptrCast (wip .search_prefixes .items ),
@ptrCast (wip .extra .items ),
};
try w .writeVecAll (&buffers );
}