Function addBytes [src]
Record a slice of bytes as a dependency of the process being cached.
Prototype
pub fn addBytes(hh: *HashHelper, bytes: []const u8) void Parameters
hh: *HashHelperbytes: []const u8 Source
pub fn addBytes(hh: *HashHelper, bytes: []const u8) void {
hh.hasher.update(mem.asBytes(&bytes.len));
hh.hasher.update(bytes);
}