pub fn initHexString(bytes: []const u8) BuildId
Input is byte values, not hex-encoded. Asserts bytes fits inside HexString
bytes
HexString
bytes: []const u8
311 312 313 314 315 316 317 318
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; }
Input is byte values, not hex-encoded. Asserts
bytesfits insideHexString