Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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. Public Type Function

Buffer

Public Type Function
std.Io.File.MultiReader.Buffer
pub fn Buffer(comptime n: usize) type

Fields

len: u32
contexts: [n][@sizeOf(Context)]u8
storage: [n][@sizeOf(Io.Operation.Storage)]u8

Functions

pub fn toStreams(b: *@This()) *Streams

File

Io/File/MultiReader.zig:43
43
44
45
46
47
48
49
50
51
52
53
54
pub fn Buffer(comptime n: usize) type {
    return extern struct {
        len: u32,
        contexts: [n][@sizeOf(Context)]u8 align(@alignOf(Context)),
        storage: [n][@sizeOf(Io.Operation.Storage)]u8 align(@alignOf(Io.Operation.Storage)),

        pub fn toStreams(b: *@This()) *Streams {
            b.len = n;
            return @ptrCast(b);
        }
    };
}