fn encodeComptime(comptime dot_notation: []const u8) [encodedLen(dot_notation)]u8 dot_notation: []const u8137
138
139
140
141
142fn encodeComptime(comptime dot_notation: []const u8) [encodedLen(dot_notation)]u8 {
@setEvalBranchQuota(4000);
comptime var buf: [256]u8 = undefined;
const oid = comptime fromDot(dot_notation, &buf) catch unreachable;
return oid.encoded[0..oid.encoded.len].*;
}
Returns encoded bytes of OID.