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.
Zig › build-web/ › main.zig › message_end
message_end
main.message_end
export fn message_end () void
File
Code
export fn message_end () void {
const msg_bytes = message_buffer .items ;
const tag : abi .ToClientTag = @fromBackingInt (@intCast (msg_bytes [0 ]));
switch (tag ) {
_ => @panic ("malformed message" ),
.hello => return helloMessage (msg_bytes ) catch @panic ("OOM" ),
.status_update => return statusUpdateMessage (msg_bytes ) catch @panic ("OOM" ),
.step_update => return stepUpdateMessage (msg_bytes ) catch @panic ("OOM" ),
.fuzz_source_index => return fuzz .sourceIndexMessage (msg_bytes ) catch @panic ("OOM" ),
.fuzz_coverage_update => return fuzz .coverageUpdateMessage (msg_bytes ) catch @panic ("OOM" ),
.fuzz_entry_points => return fuzz .entryPointsMessage (msg_bytes ) catch @panic ("OOM" ),
.time_report_generic_result => return time_report .genericResultMessage (msg_bytes ) catch @panic ("OOM" ),
.time_report_compile_result => return time_report .compileResultMessage (msg_bytes ) catch @panic ("OOM" ),
.time_report_run_test_result => return time_report .runTestResultMessage (msg_bytes ) catch @panic ("OOM" ),
}
}