felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.8k stars 585 forks source link

Added sync and streams read/write methods with offsets #262

Closed felHR85 closed 5 years ago

felHR85 commented 5 years ago

SerialOutputStream: public void write(byte b[], int off, int len) SerialInputStream: public int read(byte b[], int off, int len) UsbSerialDevice: public int syncRead(byte[] buffer, int offset, int length, int timeout) UsbSerialDevice: public int syncWrite(byte[] buffer, int offset, int length, int timeout)