Scanx takes a single optional parameter which is the buffer size in bytes. The buffer size defaults to 32767, which is the max the driver supports.