29 #define DISABLE_DEBUGLOG
33 #include "syncio_buffered_p.h"
36 #include <gwenhywfar/misc.h>
37 #include <gwenhywfar/debug.h>
38 #include <gwenhywfar/gui.h>
52 GWEN_SYNCIO_BUFFERED *xio;
72 GWEN_SYNCIO_BUFFERED *xio;
74 xio=(GWEN_SYNCIO_BUFFERED*) p;
127 GWEN_SYNCIO_BUFFERED *xio;
136 if (xio->readBuffer==
NULL) {
144 uint32_t bytesInBuffer;
152 if (size>bytesInBuffer)
185 uint32_t bytesRead=0;
187 while(bytesRead==0) {
188 uint32_t bytesInBuffer;
190 uint32_t bytesSkipped=0;
193 if (bytesInBuffer==0) {
224 if (bytesInBuffer==0) {
232 while(bytesSkipped<bytesInBuffer && bytesRead<(size-1)) {
258 const uint8_t *buffer,
260 GWEN_SYNCIO_BUFFERED *xio;
374 while( (maxLines==-1) || (lineCount<maxLines) ) {