int GCDBuffer::bget(char *buf,unsigned int len) { int r; if (p > 0) return getthis(buf,len); if (n <= len) return oneRead(buf,n); r = GCDBuffer::feed(); if (r <= 0) return r; return getthis(buf,len); }
int GCDBuffer::feed() { int r; if (p) return p; r = oneRead(x,n); if (r <= 0) return r; p = r; n -= r; if (n > 0) gcdb_byte_copyr(x + n,r,x); return r; }
boolean Buttons::toggle(){ if(oneRead()) tempToggle=!tempToggle; return tempToggle; }