All pastes #624685 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-18 13:31 UTC
rendered paste body
rc = 0;
                do {
                    int read;
                    char *data;
                    read = bufgetdata(ev.data,CODEC_SIZE-rc, &codecbuf[rc]);
                    DEBUGF("%d %d\n", rc, read);
                    if (read == -2)
                        yield();
                    else
                        rc += read;
                } while (read != 0);