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-10-03 09:37:57 -07:00
2024-09-19 18:20:22 -07:00
2024-02-23 02:37:11 -07:00
2024-09-24 13:19:06 -07:00
2024-07-23 11:43:12 -07:00
2024-07-09 14:25:42 -07:00
2024-10-07 13:19:33 -04:00
2024-03-10 18:13:30 -07:00
2024-08-22 08:44:08 +02:00
2024-08-29 20:39:11 +01:00
2024-03-21 14:11:46 -07:00
2024-02-05 11:55:14 +03:30
2024-08-07 00:48:32 -07:00
2024-07-31 16:57:42 -07:00
2024-07-19 00:30:32 -07:00
2024-07-19 00:30:32 -07:00
2024-08-29 23:43:52 +01:00
2024-07-09 14:25:42 -07:00
2024-10-23 13:47:44 -07:00
2024-10-27 14:20:52 +01:00
2024-10-12 12:00:09 +02:00
2024-10-29 01:48:13 +01:00
2024-08-23 22:59:30 -07:00
2024-06-17 16:12:19 -04:00