Lines Matching refs:env

44 Java_java_io_RandomAccessFile_initIDs(JNIEnv *env, jclass fdClass) {
45 raf_fd = (*env)->GetFieldID(env, fdClass, "fd", "Ljava/io/FileDescriptor;");
50 Java_java_io_RandomAccessFile_open(JNIEnv *env,
63 fileOpen(env, this, path, raf_fd, flags);
67 Java_java_io_RandomAccessFile_read0(JNIEnv *env, jobject this) {
68 return readSingle(env, this, raf_fd);
72 Java_java_io_RandomAccessFile_readBytes0(JNIEnv *env,
74 return readBytes(env, this, bytes, off, len, raf_fd);
78 Java_java_io_RandomAccessFile_write0(JNIEnv *env, jobject this, jint byte) {
79 writeSingle(env, this, byte, JNI_FALSE, raf_fd);
83 Java_java_io_RandomAccessFile_writeBytes0(JNIEnv *env,
85 writeBytes(env, this, bytes, off, len, JNI_FALSE, raf_fd);
89 Java_java_io_RandomAccessFile_getFilePointer(JNIEnv *env, jobject this) {
95 JNU_ThrowIOException(env, "Stream Closed");
99 JNU_ThrowIOExceptionWithLastError(env, "Seek failed");
105 Java_java_io_RandomAccessFile_length(JNIEnv *env, jobject this) {
112 JNU_ThrowIOException(env, "Stream Closed");
116 JNU_ThrowIOExceptionWithLastError(env, "Seek failed");
118 JNU_ThrowIOExceptionWithLastError(env, "Seek failed");
120 JNU_ThrowIOExceptionWithLastError(env, "Seek failed");
126 Java_java_io_RandomAccessFile_seek(JNIEnv *env,
133 JNU_ThrowIOException(env, "Stream Closed");
137 JNU_ThrowIOException(env, "Negative seek offset");
139 JNU_ThrowIOExceptionWithLastError(env, "Seek failed");
144 Java_java_io_RandomAccessFile_setLength(JNIEnv *env, jobject this,
152 JNU_ThrowIOException(env, "Stream Closed");
165 JNU_ThrowIOExceptionWithLastError(env, "setLength failed");