{"action":"opened","issue":{"url":"https://api.github.com/repos/luben/zstd-jni/issues/16","repository_url":"https://api.github.com/repos/luben/zstd-jni","labels_url":"https://api.github.com/repos/luben/zstd-jni/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/luben/zstd-jni/issues/16/comments","events_url":"https://api.github.com/repos/luben/zstd-jni/issues/16/events","html_url":"https://github.com/luben/zstd-jni/issues/16","id":181833596,"number":16,"title":"Provide optimized implementation for direct ByteBuffers","user":{"login":"anelson","id":29393,"avatar_url":"https://avatars.githubusercontent.com/u/29393?v=3","gravatar_id":"","url":"https://api.github.com/users/anelson","html_url":"https://github.com/anelson","followers_url":"https://api.github.com/users/anelson/followers","following_url":"https://api.github.com/users/anelson/following{/other_user}","gists_url":"https://api.github.com/users/anelson/gists{/gist_id}","starred_url":"https://api.github.com/users/anelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anelson/subscriptions","organizations_url":"https://api.github.com/users/anelson/orgs","repos_url":"https://api.github.com/users/anelson/repos","events_url":"https://api.github.com/users/anelson/events{/privacy}","received_events_url":"https://api.github.com/users/anelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-08T16:00:37Z","updated_at":"2016-10-08T16:00:37Z","closed_at":null,"body":"The current implementation supports only Java managed `byte[]` buffers.  In my application I'm working with memory-mapped I/O buffers, in other words `ByteBuffer`s for which `isDirect()` returns `true`.  This is a special case which has an optimized JNI API for accessing the underlying `void *` very quickly, without pinning an array on the heap.\r\n\r\nIt would be very useful to be able to use this optimized I/O pattern with the `zstd` library.  I have a working implementation to submit shortly.\r\n"}}
{"actor":{"display_login":"anelson"}}