39 const uint8_t *buf,
int buf_size)
43 const uint8_t *start, *end, *next;
51 for(start = buf, end = buf + buf_size; next < end; start = next){
55 size = next - start - 4;
58 if(size <= 0)
continue;
118 for(i=0; i<buf_size; i++){
119 state= (state<<8) | buf[i];
132 for(; i<buf_size; i++){
133 state= (state<<8) | buf[i];
148 const uint8_t **poutbuf,
int *poutbuf_size,
149 const uint8_t *buf,
int buf_size)
169 *poutbuf_size = buf_size;
174 const uint8_t *buf,
int buf_size)
180 for(i=0; i<buf_size; i++){
181 state= (state<<8) | buf[i];