Function assertReadable [src]
Invokes detectable illegal behavior when the provided slice is not mapped
or lacks read permissions.
Prototype
pub fn assertReadable(slice: []const volatile u8) void
Parameters
slice: []const volatile u8
Source
pub fn assertReadable(slice: []const volatile u8) void {
if (!runtime_safety) return;
for (slice) |*byte| _ = byte.*;
}