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 › debug › Pdb › InlineSiteSymIterator Public Struct InlineSiteSymIterator Doc Source Public Struct std.debug.Pdb.InlineSiteSymIterator
pub const InlineSiteSymIterator = struct Fields module_index : usize offset : usize end : usize Values Functions File debug/Pdb.zig: 263
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303 pub const InlineSiteSymIterator = struct {
module_index : usize ,
offset : usize ,
end : usize ,
const empty : InlineSiteSymIterator = .{
.module_index = 0 ,
.offset = 0 ,
.end = 0 ,
};
pub fn next (iter : *InlineSiteSymIterator , module : *Module ) ?*align (1 ) pdb .InlineSiteSym {
while (iter .offset < iter .end ) {
const inline_prefix : *align (1 ) pdb .RecordPrefix = @ptrCast (&module .symbols [iter .offset ]);
const end = iter .offset + inline_prefix .record_len + @sizeOf (u16 );
if (end > iter .end ) return null ;
defer iter .offset = end ;
switch (inline_prefix .record_kind ) {
// Skip nested procedures
.lproc32 ,
.lproc32_st ,
.gproc32 ,
.gproc32_st ,
.lproc32_id ,
.gproc32_id ,
.lproc32_dpc ,
.lproc32_dpc_id ,
=> {
const skip : *align (1 ) pdb .ProcSym = @ptrCast (inline_prefix );
iter .offset = skip .end ;
},
.inlinesite ,
.inlinesite2 ,
=> return @ptrCast (inline_prefix ),
else => {},
}
}
return null ;
}
}