| 55 | namespace { |
| 56 | |
| 57 | inline jbyteArray charsToArray(JNIEnv* e, const char* s) |
| 58 | { |
| 59 | unsigned length = strlen(s); |
| 60 | jbyteArray a = e->NewByteArray(length + 1); |
| 61 | e->SetByteArrayRegion(a, 0, length + 1, reinterpret_cast<const jbyte*>(s)); |
| 62 | return a; |
| 63 | } |
| 64 | |
| 65 | inline void doClose(int socket) |
| 66 | { |
no outgoing calls
no test coverage detected