sodium_munlock

The sodium_munlock() function should be called after locked memory is not being used any more. It will zero len bytes starting at addr before actually flagging the pages as swappable again. Calling sodium_memzero() prior to sodium_munlock() is thus not required.

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

Return Value

Type: int

0 on success, -1 otherwise

See Also

Meta