1234567module juptune.crypto.memory;
void access(
void function(
void[]
) func
);
Provides a safe(ish) way to access the underlying user memory.
This wrapper function is used to help enforce the scopeattribute.
You'll probably have to mark your delegate @trusted, just be wary this prevents scopefrom being checked by the compiler.
D's compiler is god awful when it comes to error messages, so you may want to store funcinside a variable first to see what's going wrong with it.
1234567module juptune.crypto.memory;
void access(
void function(
void[]
) func
);
ditto