jni content stream fix case when user passed non 0 offset into user buffer