fn alignCast(comptime alignment: u29, ptr: anytype) AlignCastError!AlignCastResult(alignment, @TypeOf(ptr))

Align cast a pointer but return an error if it’s the wrong alignment

Parameters

alignment: u29,
ptr: anytype,