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 › std/ › os/ › linux.zig › IPTOS
IPTOS
linux.IPTOS
pub const IPTOS = struct
File
Code
pub const IPTOS = struct {
pub const TOS_MASK = 0x1e ;
pub fn TOS (t : anytype ) @TypeOf (t ) {
return t & TOS_MASK ;
}
pub const MINCOST = 0x02 ;
pub const RELIABILITY = 0x04 ;
pub const THROUGHPUT = 0x08 ;
pub const LOWDELAY = 0x10 ;
pub const PREC_MASK = 0xe0 ;
pub fn PREC (t : anytype ) @TypeOf (t ) {
return t & PREC_MASK ;
}
pub const PREC_ROUTINE = 0x00 ;
pub const PREC_PRIORITY = 0x20 ;
pub const PREC_IMMEDIATE = 0x40 ;
pub const PREC_FLASH = 0x60 ;
pub const PREC_FLASHOVERRIDE = 0x80 ;
pub const PREC_CRITIC_ECP = 0xa0 ;
pub const PREC_INTERNETCONTROL = 0xc0 ;
pub const PREC_NETCONTROL = 0xe0 ;
}