Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions SecureMemory.access

1
2
3
4
5
6
7
module juptune.crypto.memory;

void access(
    void function(
        void[]
    ) func
);

Documentation

Provides a safe(ish) way to access the underlying user memory.

Notes

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.

Params

Override Functions SecureMemory.access

1
2
3
4
5
6
7
module juptune.crypto.memory;

void access(
    void function(
        void[]
    ) func
);

Documentation

ditto