Lines Matching refs:env

16 static void JNICALL nxt_java_OutputStream_writeByte(JNIEnv *env, jclass cls,
18 static nxt_unit_buf_t *nxt_java_OutputStream_req_buf(JNIEnv *env,
20 static void JNICALL nxt_java_OutputStream_write(JNIEnv *env, jclass cls,
22 static void JNICALL nxt_java_OutputStream_flush(JNIEnv *env, jclass cls,
24 static void JNICALL nxt_java_OutputStream_close(JNIEnv *env, jclass cls,
32 nxt_java_initOutputStream(JNIEnv *env, jobject cl) in nxt_java_initOutputStream() argument
37 cls = nxt_java_loadClass(env, cl, "nginx.unit.OutputStream"); in nxt_java_initOutputStream()
42 nxt_java_OutputStream_class = (*env)->NewGlobalRef(env, cls); in nxt_java_initOutputStream()
43 (*env)->DeleteLocalRef(env, cls); in nxt_java_initOutputStream()
65 res = (*env)->RegisterNatives(env, nxt_java_OutputStream_class, in nxt_java_initOutputStream()
72 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initOutputStream()
81 nxt_java_OutputStream_writeByte(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_OutputStream_writeByte() argument
91 buf = nxt_java_OutputStream_req_buf(env, req); in nxt_java_OutputStream_writeByte()
99 nxt_java_OutputStream_flush_buf(env, req); in nxt_java_OutputStream_writeByte()
105 nxt_java_OutputStream_flush_buf(JNIEnv *env, nxt_unit_request_info_t *req) in nxt_java_OutputStream_flush_buf() argument
115 nxt_java_throw_IOException(env, "Failed to allocate response"); in nxt_java_OutputStream_flush_buf()
124 nxt_java_throw_IOException(env, "Failed to send response headers"); in nxt_java_OutputStream_flush_buf()
133 nxt_java_throw_IOException(env, "Failed to send buffer"); in nxt_java_OutputStream_flush_buf()
148 nxt_java_OutputStream_req_buf(JNIEnv *env, nxt_unit_request_info_t *req) in nxt_java_OutputStream_req_buf() argument
162 nxt_java_throw_IOException(env, "Failed to allocate buffer"); in nxt_java_OutputStream_req_buf()
175 nxt_java_OutputStream_write(JNIEnv *env, jclass cls, jlong req_info_ptr, in nxt_java_OutputStream_write() argument
188 ptr = (*env)->GetPrimitiveArrayCritical(env, b, NULL); in nxt_java_OutputStream_write()
191 buf = nxt_java_OutputStream_req_buf(env, req); in nxt_java_OutputStream_write()
206 rc = nxt_java_OutputStream_flush_buf(env, req); in nxt_java_OutputStream_write()
213 (*env)->ReleasePrimitiveArrayCritical(env, b, ptr, 0); in nxt_java_OutputStream_write()
218 nxt_java_OutputStream_flush(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_OutputStream_flush() argument
227 nxt_java_OutputStream_flush_buf(env, req); in nxt_java_OutputStream_flush()
233 nxt_java_OutputStream_close(JNIEnv *env, jclass cls, jlong req_info_ptr) in nxt_java_OutputStream_close() argument
235 nxt_java_OutputStream_flush_buf(env, nxt_jlong2ptr(req_info_ptr)); in nxt_java_OutputStream_close()