38 const uint8_t *buf,
int buf_size)
50 for(start = buf, end = buf + buf_size; next <
end; start = next){
54 size = next - start - 4;
57 if(size <= 0)
continue;
112 for(i=0; i<buf_size; i++){
113 state= (state<<8) | buf[i];
126 for(; i<buf_size; i++){
127 state= (state<<8) | buf[i];
142 const uint8_t **poutbuf,
int *poutbuf_size,
143 const uint8_t *buf,
int buf_size)
163 *poutbuf_size = buf_size;
168 const uint8_t *buf,
int buf_size)
174 for(i=0; i<buf_size; i++){
175 state= (state<<8) | buf[i];