{"action":"created","issue":{"url":"https://api.github.com/repos/deephacks/lmdbjni/issues/21","labels_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/21/comments","events_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/21/events","html_url":"https://github.com/deephacks/lmdbjni/issues/21","id":55560814,"number":21,"title":"Update BufferCursor to support Android or document why not","user":{"login":"harningt","id":3589,"avatar_url":"https://avatars.githubusercontent.com/u/3589?v=3","gravatar_id":"","url":"https://api.github.com/users/harningt","html_url":"https://github.com/harningt","followers_url":"https://api.github.com/users/harningt/followers","following_url":"https://api.github.com/users/harningt/following{/other_user}","gists_url":"https://api.github.com/users/harningt/gists{/gist_id}","starred_url":"https://api.github.com/users/harningt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harningt/subscriptions","organizations_url":"https://api.github.com/users/harningt/orgs","repos_url":"https://api.github.com/users/harningt/repos","events_url":"https://api.github.com/users/harningt/events{/privacy}","received_events_url":"https://api.github.com/users/harningt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-27T00:55:58Z","updated_at":"2015-02-01T11:48:56Z","closed_at":null,"body":"It sounds to me like BufferCursor would be great for Android, but I cannot seem to find a document reason why this would not work... just a statement not to do it. \r\n\r\nIf it is impossible due to current Android limitations, having it documented what they are would be useful to keep a watch out for when Android may support the necessary feature.\r\nIf it is non-performant due to runtime issues (either Dalvik, ART, or both) documentation would be good here as well."},"comment":{"url":"https://api.github.com/repos/deephacks/lmdbjni/issues/comments/72361644","html_url":"https://github.com/deephacks/lmdbjni/issues/21#issuecomment-72361644","issue_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/21","id":72361644,"user":{"login":"krisskross","id":414023,"avatar_url":"https://avatars.githubusercontent.com/u/414023?v=3","gravatar_id":"","url":"https://api.github.com/users/krisskross","html_url":"https://github.com/krisskross","followers_url":"https://api.github.com/users/krisskross/followers","following_url":"https://api.github.com/users/krisskross/following{/other_user}","gists_url":"https://api.github.com/users/krisskross/gists{/gist_id}","starred_url":"https://api.github.com/users/krisskross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisskross/subscriptions","organizations_url":"https://api.github.com/users/krisskross/orgs","repos_url":"https://api.github.com/users/krisskross/repos","events_url":"https://api.github.com/users/krisskross/events{/privacy}","received_events_url":"https://api.github.com/users/krisskross/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T11:48:56Z","updated_at":"2015-02-01T11:48:56Z","body":"The 8 byte offset was a silly mistake, of course it should be 2 * 8 bytes.\r\n\r\nI have tried different variations but can't get LMDB to accept mdb_put_address. Also double checked  memory is correct by using peekLong and it does AFAICT.\r\n\r\nOne thing I noticed is that memory addresses are 32-bit length like 1948825548. But address pointers should be treated as 64-bit address (so writing longs is correct)?\r\n\r\n> Android is currently expected to run on 32-bit platforms. In theory it could be built for a 64-bit system, but that is not a goal at this time. For the most part this isn't something that you will need to worry about when interacting with native code, but it becomes significant if you plan to store pointers to native structures in integer fields in an object. To support architectures that use 64-bit pointers, you need to stash your native pointers in a long field rather than an int.\r\n\r\nhttp://developer.android.com/training/articles/perf-jni.html#64_bit\r\n\r\nI'm running out of ideas. I have searched around for projects that might use the same approach but failed to find any."}}