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

Function socketErrorString

classpath/java-nio.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86inline jbyteArray socketErrorString(JNIEnv* e, int n)
87{
88#ifdef PLATFORM_WINDOWS
89 const unsigned size = 64;
90 char buffer[size];
91 snprintf(buffer, size, "wsa code: %d", n);
92 return charsToArray(e, buffer);
93#else
94 return errorString(e, n);
95#endif
96}
97
98inline jbyteArray errorString(JNIEnv* e)
99{

Calls 3

snprintfFunction · 0.85
charsToArrayFunction · 0.85
errorStringFunction · 0.85

Tested by

no test coverage detected