| 173 | } |
| 174 | |
| 175 | inline void doWrite(JNIEnv* e, jint fd, const jbyte* data, jint length) |
| 176 | { |
| 177 | int r = WRITE(fd, data, length); |
| 178 | if (r != length) { |
| 179 | throwNewErrno(e, "java/io/IOException"); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | #ifdef PLATFORM_WINDOWS |
| 184 |
no test coverage detected