152 |
jbyte *bufptr; |
jbyte *bufptr; |
153 |
int rc; |
int rc; |
154 |
|
|
155 |
|
if (len == 0) |
156 |
|
return 0; /* Nothing todo, and GetByteArrayElements() seems undefined. */ |
157 |
|
|
158 |
bufptr = (*env)->GetByteArrayElements(env, buf, JNI_FALSE); |
bufptr = (*env)->GetByteArrayElements(env, buf, JNI_FALSE); |
159 |
if (!bufptr) |
if (!bufptr) |
160 |
{ |
{ |
187 |
jbyte *bufptr; |
jbyte *bufptr; |
188 |
int rc; |
int rc; |
189 |
|
|
190 |
|
if (len == 0) |
191 |
|
return 0; /* Nothing todo, and GetByteArrayElements() seems undefined. */ |
192 |
|
|
193 |
bufptr = (*env)->GetByteArrayElements(env, buf, 0); |
bufptr = (*env)->GetByteArrayElements(env, buf, 0); |
194 |
if (!bufptr) |
if (!bufptr) |
195 |
{ |
{ |