Function initHexString [src]

Input is byte values, not hex-encoded. Asserts bytes fits inside HexString

Prototype

pub fn initHexString(bytes: []const u8) BuildId

Parameters

bytes: []const u8

Source

pub fn initHexString(bytes: []const u8) BuildId { var result: BuildId = .{ .hexstring = .{ .bytes = undefined, .len = @intCast(bytes.len), } }; @memcpy(result.hexstring.bytes[0..bytes.len], bytes); return result; }