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. Private Struct

SplatHeaderTestCase

Private Struct
std.Io.Writer.SplatHeaderTestCase
const SplatHeaderTestCase = struct

Fields

writer_type: enum { fixed, allocating }
buf_len: usize = 100

When writer_type is .fixed, determines the buffer size. When writer_type is .allocating, determines the initial capacity.

header: []const u8
data: []const []const u8
splat: u8
limit: u8
expected_res: union(enum) { written: usize, write_failed }
expected_buf_content: []const u8

File

Io/Writer.zig:311
311
312
313
314
315
316
317
318
319
320
321
322
const SplatHeaderTestCase = struct {
    writer_type: enum { fixed, allocating },
    /// When writer_type is .fixed, determines the buffer size.
    /// When writer_type is .allocating, determines the initial capacity.
    buf_len: usize = 100,
    header: []const u8,
    data: []const []const u8,
    splat: u8,
    limit: u8,
    expected_res: union(enum) { written: usize, write_failed },
    expected_buf_content: []const u8,
}