mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Change to the read buffer size on Windows for better performance
This commit is contained in:
@@ -236,7 +236,7 @@ bool VCP::close() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VCP::readTask() {
|
void VCP::readTask() {
|
||||||
constexpr size_t READ_BUFFER_SIZE = 8;
|
constexpr size_t READ_BUFFER_SIZE = 10240;
|
||||||
uint8_t readbuf[READ_BUFFER_SIZE];
|
uint8_t readbuf[READ_BUFFER_SIZE];
|
||||||
IOTaskState state = LAUNCH;
|
IOTaskState state = LAUNCH;
|
||||||
DWORD bytesRead = 0;
|
DWORD bytesRead = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user