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 Function
Read the value of x from buffer. Asserts that buffer is large enough to contain a value of bit-size bit_count.
The contents of buffer are interpreted as if they were the contents of @ptrCast(*[buffer.len]const u8, &x). Byte ordering is determined by endian and any required padding bits are expected on the MSB end.
Read the value of
xfrombuffer. Asserts thatbufferis large enough to contain a value of bit-sizebit_count.The contents of
bufferare interpreted as if they were the contents of @ptrCast(*[buffer.len]const u8, &x). Byte ordering is determined byendianand any required padding bits are expected on the MSB end.