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
Hashed
Public Type Function
std.Io.Writer.Hashed
pubfnHashed(comptimeHasher: type) type
Provides a Writer implementation based on calling Hasher.update, sending all data also to an underlying Writer.
When using this, the underlying writer is best unbuffered because all writes are passed on directly to it.
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.
Contrast with Hashing which terminates the stream pipeline.
Provides a
Writerimplementation based on callingHasher.update, sending all data also to an underlyingWriter.When using this, the underlying writer is best unbuffered because all writes are passed on directly to it.
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.
Contrast with
Hashingwhich terminates the stream pipeline.