Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PointerWrapper type #140

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Commits on Aug 30, 2017

  1. Add PointerWrapper type

    You can extend PointerWrapper for typesafe pointer. Example:
     public interface TestLib {
          CustomPointer ptr_malloc(@size_t int size);
          void ptr_free(CustomPointer ptr);
    
          class CustomPointer extends PointerWrapper {
              private CustomPointer(Pointer pointer) {
                  super(pointer);
              }
          }
      }
     }
    
    (cherry picked from commit 98ca7da)
    goto1134 committed Aug 30, 2017
    Configuration menu
    Copy the full SHA
    1b22fbf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c224a08 View commit details
    Browse the repository at this point in the history