HIDL: How to pass address of variable over hidl

  android-source, c++

I have a function

srv.h:
void func(int a, unsigned char *b); 

How can this be translated to HIDL interface so that the function when called in from system service layer, can pass the address of the variable as a function parameter.

srv.hal:
interface ISrv {
    func(int32_t a, 
         uint8_t [] b);   // convert to uint8_t * type  
};

Source: Windows Questions C++

LEAVE A COMMENT