MemoryProtection enum

The different levels of memory protection that libsodium provides.

These protection levels are used by the SodiumAllocator and SodiumPointer classes to control the memory protection level of memory managed by libsodium.

Inheritance

Constructors

MemoryProtection()
const

Values

noAccess → const MemoryProtection

Causes sodium_mprotect_noaccess to be applied.

See https://libsodium.gitbook.io/doc/memory_management#guarded-heap-allocations

readOnly → const MemoryProtection

Causes sodium_mprotect_readonly to be applied.

See https://libsodium.gitbook.io/doc/memory_management#guarded-heap-allocations

readWrite → const MemoryProtection

Causes sodium_mprotect_readwrite to be applied.

See https://libsodium.gitbook.io/doc/memory_management#guarded-heap-allocations

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<MemoryProtection>
A constant List of the values in this enum, in order of their declaration.