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

Function errorString

classpath/java-nio.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74inline jbyteArray errorString(JNIEnv* e, int n)
75{
76#ifdef _MSC_VER
77 const unsigned size = 128;
78 char buffer[size];
79 strerror_s(buffer, size, n);
80 return charsToArray(e, buffer);
81#else
82 return charsToArray(e, strerror(n));
83#endif
84}
85
86inline jbyteArray socketErrorString(JNIEnv* e, int n)
87{

Callers 3

socketErrorStringFunction · 0.85
throwIOExceptionFunction · 0.85
throwSocketExceptionFunction · 0.85

Calls 2

charsToArrayFunction · 0.85
snprintfFunction · 0.85

Tested by

no test coverage detected