lock method

bool lock(
  1. Pointer<NativeType> pointer,
  2. int byteCount
)

Implementation

bool lock(Pointer<NativeType> pointer, int byteCount) =>
    sodium.sodium_mlock(pointer.cast(), byteCount) == 0;