fn alignCast(comptime alignment: u29, ptr: anytype) AlignCastError!AlignCastResult(alignment, @TypeOf(ptr))
[src]
Align cast a pointer but return an error if it’s the wrong alignment
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