MCPcopy Create free account
hub / github.com/ReadyTalk/avian / charsToArray

Function charsToArray

classpath/java-nio.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55namespace {
56
57inline 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
65inline void doClose(int socket)
66{

Callers 2

errorStringFunction · 0.85
socketErrorStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected