pike.git / src / post_modules / Shuffler / a_source_pikestring.c

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_pikestring.c:22:       struct pike_string *str;    int offset, len;   };      static struct data get_data( struct source *src, off_t len )   {    struct ps_source *s = (struct ps_source *)src;    struct data res;    -  res.do_free = 0; -  res.off = 0; +     res.data = s->str->str + s->offset;       if( len > s->len )    {    len = s->len;    s->s.eof = 1; /* next read will be done from the next source */    }       res.len = len;