sodium_mprotect_readonly

The sodium_mprotect_readonly() function marks a region allocated using sodium_malloc() or sodium_allocarray() as read-only. Attempting to modify the data will cause the process to terminate.

extern (C)
int
sodium_mprotect_readonly
(
void* ptr
)

Meta