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

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_system_memory.c:28:    } *mem;       int offset, len;   };      static struct data get_data( struct source *src, off_t len )   {    struct sm_source *s = (struct sm_source *)src;    struct data res;    -  res.do_free = 0; -  res.off = 0; +     res.data = s->mem->data + 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;