Hello everybody here, I am new and new in android in this forum and I have a question.
I am working with the USB driver and I am using AdbWriteEndpointSync to perform some operations. I want to address 64 bits with a 32 bits microprocessor but I would like to if this API can called like this
unsigned long long xfer = (len > 4096) ? 4096 : len;
AdbWriteEndpointSync(handle->adb_write_pipe,
(void*)data,
(unsigned long long)xfer,
&written,
time_out);
originally my code was like this:
int xfer = (len > 4096) ? 4096 : len;
AdbWriteEndpointSync(handle->adb_write_pipe,
(void*)data,
(unsigned long)xfer,
&written,
time_out);
I do not if I am going to have issues changing the data type of the bytes to be written.
Any comments let me know.
I am working with the USB driver and I am using AdbWriteEndpointSync to perform some operations. I want to address 64 bits with a 32 bits microprocessor but I would like to if this API can called like this
unsigned long long xfer = (len > 4096) ? 4096 : len;
AdbWriteEndpointSync(handle->adb_write_pipe,
(void*)data,
(unsigned long long)xfer,
&written,
time_out);
originally my code was like this:
int xfer = (len > 4096) ? 4096 : len;
AdbWriteEndpointSync(handle->adb_write_pipe,
(void*)data,
(unsigned long)xfer,
&written,
time_out);
I do not if I am going to have issues changing the data type of the bytes to be written.
Any comments let me know.
