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 › os › windows › CONSOLE › USER_IO › Header › With › request Public Function request Doc Source Public Function std.os.windows.CONSOLE.USER_IO.Header.With.request
pub fn request (
with : *@This (),
file : ?Io .File ,
comptime in_len : u32 ,
in : [in_len ]InputBuffer ,
comptime out_len : u32 ,
out : [out_len ]OutputBuffer ,
) Request (1 + in_len , 1 + out_len ) Params File os/windows.zig: 1062
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078 pub fn request (
with : *@This (),
file : ?Io .File ,
comptime in_len : u32 ,
in : [in_len ]InputBuffer ,
comptime out_len : u32 ,
out : [out_len ]OutputBuffer ,
) Request (1 + in_len , 1 + out_len ) {
return .init (
if (file ) |f | f .handle else null ,
[1 ]InputBuffer {.{
.Size = @offsetOf (@This (), "Data" ) + @sizeOf (Data ),
.Pointer = with ,
}} ++ in ,
[1 ]OutputBuffer {.{ .Size = @sizeOf (Data ), .Pointer = &with .Data }} ++ out ,
);
}