Skip to content

Instantly share code, notes, and snippets.

@sheki
Created February 12, 2013 01:01
Show Gist options
  • Select an option

  • Save sheki/4759127 to your computer and use it in GitHub Desktop.

Select an option

Save sheki/4759127 to your computer and use it in GitHub Desktop.
@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