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 Type Function
Hashing
Public Type Function
std.Io.Writer.Hashing
pubfnHashing(comptimeHasher: type) type
Provides a Writer implementation based on calling Hasher.update, discarding all data.
This implementation makes suboptimal buffering decisions due to being generic. A better solution will involve creating a writer for each hash function, where the splat buffer can be tailored to the hash implementation details.
The total number of bytes written is stored in hasher.
Contrast with Hashed which also passes the data to an underlying stream.
Provides a
Writerimplementation based on callingHasher.update, discarding all data.This implementation makes suboptimal buffering decisions due to being generic. A better solution will involve creating a writer for each hash function, where the splat buffer can be tailored to the hash implementation details.
The total number of bytes written is stored in
hasher.Contrast with
Hashedwhich also passes the data to an underlying stream.