Visibility & Scope understanding.
Giorgio Zoppi
giorgio.zoppi at gmail.com
Sat Jun 1 16:32:55 UTC 2019
Dear all,
your panama tool is excellent. I need a deeper understanding on how to use
an opaque object for my botan java binding (botan is a C++ cryptolibrary)
Basically my code has an opaque pointer
:
private Pointer<Pointer<botan_mac_struct>> botanMac;
in the constructor i have inside a scope:
this.botanMac =
scope().allocate(LayoutType.ofStruct(botan_mac_struct.class).pointer());
How can I have class scope? The botanMac object will be used everywhere
inside the class and not just in the ctor. Do you have any docs about that?
Best Regards,
Giorgio
More information about the panama-dev
mailing list