Created
February 12, 2013 01:01
-
-
Save sheki/4759127 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @JniMethod(cast="Cache *", accessor="NewLRUCache") | |
| public static final native long NewLRUCache(@JniArg(cast="size_t") long capacity); | |
| // Now the method returns std::shared_ptr<Cache> instead of Cache* | |
| @JniMethod(cast="std::shared_ptr<Cache>", accessor="NewLRUCache") | |
| public static final native long NewLRUCache(@JniArg(cast="size_t") long capacity); | |
| This does not work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment