read
Function parameters
Parameters
- self:*@This()
- buf:[]u8
Type definitions in this namespace
Types
Functions in this namespace
Functions
Source
Implementation
pub fn read(self: *@This(), buf: []u8) Error!usize {
const amt = try self.child_reader.read(buf);
self.hasher.update(buf[0..amt]);
return amt;
}