123456module juptune.crypto.memory;
static Result allocate(
SecureMemory memory,
ulong length
);
Allocates a new SecureMemory struct, with the given length.
Please see the struct documentation for more information on the memory layout.
A length of 0 is valid, though not really recommended.
If any of the syscalls fail, a Result will be thrown with the OS error code + message.
Result.noError on success, or an error otherwise.