TassyJim
 Guru
 Joined: 07/08/2011 Location: AustraliaPosts: 6433 |
| Posted: 07:13am 11 Jun 2025 |
|
|
|
With a 256 byte buffer you need two reads. Normally I would have a larger buffer hence the do:loop
Once flushed, I use whatever size read is needed for the incoming data with plenty of room to synchronize the stream. |