Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在使用 Android USB 方法进行数据批量传输时,我遇到了以下问题:
int readAmt = 2; numBytesRead = mConnection.bulkTransfer(mReadEndpoint, mReadBuffer, readAmt, timeoutMillis);
numBytesRead现在是 4. 接收比请求更多的字节是否正常?我一直假设使用类似的读取方法它会抓取 n 个字节或更少。
numBytesRead