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. Public Constant

max_len

Public Constant
std.Io.net.HostName.max_len
pub const max_len = 254

The maximum number of bytes needed to store the text representation of a max length host name, where labels are separated by dots, including the trailing dot and the zero-length root label.

The max length of a host name is determined by its packet representation, where each label has a length prefix of 1 octet, the root label has a length of 0, and the maximum total number of octets is 255.

See RFC 1035, Section 3.1

File

Io/net/HostName.zig:29
29
pub const max_len = 254