MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SendOutputReport

Method SendOutputReport

deps/SDL2/src/hidapi/android/hid.cpp:541–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539 }
540
541 int SendOutputReport( const unsigned char *pData, size_t nDataLen )
542 {
543 // Make sure thread is attached to JVM/env
544 JNIEnv *env;
545 g_JVM->AttachCurrentThread( &env, NULL );
546 pthread_setspecific( g_ThreadKey, (void*)env );
547
548 jbyteArray pBuf = NewByteArray( env, pData, nDataLen );
549 int nRet = env->CallIntMethod( g_HIDDeviceManagerCallbackHandler, g_midHIDDeviceManagerSendOutputReport, m_nId, pBuf );
550 ExceptionCheck( env, "SendOutputReport" );
551
552 env->DeleteLocalRef( pBuf );
553 return nRet;
554 }
555
556 int SendFeatureReport( const unsigned char *pData, size_t nDataLen )
557 {

Callers 1

hid_writeFunction · 0.80

Calls 1

NewByteArrayFunction · 0.85

Tested by

no test coverage detected