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
bytesToValue
Public Function
std.mem.bytesToValue
pubfnbytesToValue(comptimeT: type, bytes: anytype) T
Given a pointer to an array of bytes, returns a value of the specified type backed by a copy of those bytes.
Params
T: type
bytes
File
mem.zig:4530
453045314532
pubfnbytesToValue(comptimeT: type, bytes: anytype) T {
returnbytesAsValue(T, bytes).*;
}
Given a pointer to an array of bytes, returns a value of the specified type backed by a copy of those bytes.