SodiumPointer<T extends NativeType>.raw constructor

SodiumPointer<T extends NativeType>.raw(
  1. LibSodiumFFI sodium,
  2. Pointer<T> ptr,
  3. int count
)

Constructs the pointer from the libsodium API, the raw ptr and the element count.

Implementation

SodiumPointer.raw(this.sodium, this.ptr, this.count)
    : _isView = false,
      _locked = true,
      _memoryProtection = MemoryProtection.readWrite;