sodium_mlock

The sodium_mlock() function locks at least len bytes of memory starting at addr. This can help avoid swapping sensitive data to disk.

extern (C) @nogc nothrow
int
sodium_mlock
(
scope void* addr
,
const size_t len
)

Return Value

Type: int

0 on success, -1 otherwise

See Also

Meta