commit | ef809d09cf0d28d999ac69969e4506d8afa4624d | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu Dec 19 17:52:47 2013 +0000 |
committer | Narayan Kamath <narayan@google.com> | Fri Dec 20 10:14:20 2013 +0000 |
tree | 326627b033a42a39261310054edd8ebea087df39 | |
parent | 7a761d8cdcc960d2198277a89396a0e24b8bb10b [diff] |
JNI: NewDirectByteBuffer should allow 0 length buffers. This makes the implementation symmetric with direct buffers allocated from java. - GetDirectBufferAddress returns the address of the buffer passed in to NewDirectByteBuffer (and not NULL). - GetDirectBufferCapaticy returns 0. bug: https://code.google.com/p/android/issues/detail?id=63055 Change-Id: I55b24623ec4f7670972fed898ea097934c6c0b5f