mlugg 24babde746
std.mem.asBytes: fix footgun when passing non-single pointer
I was just bitten by this footgun, where I actually wanted
`sliceAsBytes` but unintentionally used `asBytes`, which in practice
ignored all but the first element. Just add a comptime assertion to
trigger a compile error in this case.
2024-10-31 20:42:53 +00:00
..
2024-09-19 18:20:22 -07:00
2024-09-19 18:20:21 -07:00
2024-09-24 23:58:21 -07:00
2024-10-23 16:27:39 -07:00
2024-10-23 16:27:39 -07:00
2024-10-04 22:21:27 +00:00