Lines Matching refs:read
31 int read(char *buf, int len) {
40 int read = read_internal(buf, len - 1, JniConstants::openSslInputStream_readLineMethod);
41 buf[read] = '\0';
43 return read;
56 JNI_TRACE("BioInputStream::read could not get JNIEnv");
61 JNI_TRACE("BioInputStream::read called with pending exception");
67 JNI_TRACE("BioInputStream::read failed call to NewByteArray");
71 jint read = env->CallIntMethod(getStream(), method, javaBytes.get());
73 JNI_TRACE("BioInputStream::read failed call to InputStream#read");
78 if (read == -1) {
80 read = 0;
81 } else if (read > 0) {
82 env->GetByteArrayRegion(javaBytes.get(), 0, read, reinterpret_cast<jbyte *>(buf));
85 return read;