/* Decodes a length value in the coding used by lzo.  */
static int get_len(LZOContext *c, int x, int mask)
/* Decodes a length value in the coding used by lzo.  */
static int get_len(LZOContext *c, int x, int mask)
{
        while (!(x = get_byte(c))) cnt += 255;
        cnt += mask + x;
    }
    return cnt;
}