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 › compress › lzma › Decode › init Public Function init Doc Source Public Function std.compress.lzma.Decode.init
pub fn init (gpa : Allocator , properties : Properties ) !Decode Params File compress/lzma.zig: 133
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151 pub fn init (gpa : Allocator , properties : Properties ) !Decode {
return .{
.properties = properties ,
.literal_probs = try Vec2d .init (gpa , 0x400 , @as (usize , 1 ) << (properties .lc + properties .lp ), 0x300 ),
.pos_slot_decoder = @splat (.{}),
.align_decoder = .{},
.pos_decoders = @splat (0x400 ),
.is_match = @splat (0x400 ),
.is_rep = @splat (0x400 ),
.is_rep_g0 = @splat (0x400 ),
.is_rep_g1 = @splat (0x400 ),
.is_rep_g2 = @splat (0x400 ),
.is_rep_0long = @splat (0x400 ),
.state = 0 ,
.rep = @splat (0 ),
.len_decoder = .{},
.rep_len_decoder = .{},
};
}