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.

RightEncoded

Right-encode result type (max 9 bytes for 64-bit usize)

kangarootwelve.RightEncoded
const RightEncoded = struct

File

lib/std/crypto/kangarootwelve.zig:127

Code

const RightEncoded = struct {
    bytes: [9]u8,
    len: u8,

    fn slice(self: *const RightEncoded) []const u8 {
        return self.bytes[0..self.len];
    }
}