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 library itself.
Zig › compiler/ › resinator/ › cvtres.zig › writeSymbol
writeSymbol
cvtres.writeSymbol
fn writeSymbol (writer : *std .Io .Writer , symbol : std .coff .Symbol ) !void
File
Code
fn writeSymbol (writer : *std .Io .Writer , symbol : std .coff .Symbol ) !void {
try writer .writeAll (&symbol .name );
try writer .writeInt (u32 , symbol .value , .little );
try writer .writeInt (i16 , @backingInt (symbol .section_number ), .little );
try writer .writeInt (u8 , @backingInt (symbol .type .base_type ), .little );
try writer .writeInt (u8 , @backingInt (symbol .type .complex_type ), .little );
try writer .writeInt (u8 , @backingInt (symbol .storage_class ), .little );
try writer .writeInt (u8 , symbol .number_of_aux_symbols , .little );
}