lock method
Provides sodium_mlock.
See https://libsodium.gitbook.io/doc/memory_management#locking-memory
Implementation
bool lock(Pointer<NativeType> pointer, int byteCount) =>
sodium.sodium_mlock(pointer.cast(), byteCount) == 0;
Provides sodium_mlock.
See https://libsodium.gitbook.io/doc/memory_management#locking-memory
bool lock(Pointer<NativeType> pointer, int byteCount) =>
sodium.sodium_mlock(pointer.cast(), byteCount) == 0;