Lines Matching refs:end
1564 const unsigned char* end = start + MAX_SUPPORTED_DEFLATE_LENGTH; in countZeros() local
1565 if(end > data + size) end = data + size; in countZeros()
1567 while(data != end && *data == 0) ++data; in countZeros()
2101 size_t end = start + blocksize; in lodepng_deflatev() local
2102 if(end > insize) end = insize; in lodepng_deflatev()
2104 … if(settings->btype == 1) error = deflateFixed(&writer, &hash, in, start, end, settings, final); in lodepng_deflatev()
2105 …else if(settings->btype == 2) error = deflateDynamic(&writer, &hash, in, start, end, settings, fin… in lodepng_deflatev()
2515 unsigned char* lodepng_chunk_next(unsigned char* chunk, unsigned char* end) { in lodepng_chunk_next() argument
2516 if(chunk >= end || end - chunk < 12) return end; /*too small to contain a chunk*/ in lodepng_chunk_next()
2524 if(lodepng_addofl(lodepng_chunk_length(chunk), 12, &total_chunk_length)) return end; in lodepng_chunk_next()
2526 if(result < chunk) return end; /*pointer overflow*/ in lodepng_chunk_next()
2531 const unsigned char* lodepng_chunk_next_const(const unsigned char* chunk, const unsigned char* end)… in lodepng_chunk_next_const() argument
2532 if(chunk >= end || end - chunk < 12) return end; /*too small to contain a chunk*/ in lodepng_chunk_next_const()
2540 if(lodepng_addofl(lodepng_chunk_length(chunk), 12, &total_chunk_length)) return end; in lodepng_chunk_next_const()
2542 if(result < chunk) return end; /*pointer overflow*/ in lodepng_chunk_next_const()
2547 unsigned char* lodepng_chunk_find(unsigned char* chunk, unsigned char* end, const char type[5]) { in lodepng_chunk_find() argument
2549 if(chunk >= end || end - chunk < 12) return 0; /* past file end: chunk + 12 > end */ in lodepng_chunk_find()
2551 chunk = lodepng_chunk_next(chunk, end); in lodepng_chunk_find()
2557 const unsigned char* lodepng_chunk_find_const(const unsigned char* chunk, const unsigned char* end,… in lodepng_chunk_find_const() argument
2559 if(chunk >= end || end - chunk < 12) return 0; /* past file end: chunk + 12 > end */ in lodepng_chunk_find_const()
2561 chunk = lodepng_chunk_next_const(chunk, end); in lodepng_chunk_find_const()
6300 out.insert(out.end(), &buffer[0], &buffer[buffersize]); in decompress()
6319 out.insert(out.end(), &buffer[0], &buffer[buffersize]); in compress()
6364 out.insert(out.end(), &buffer[0], &buffer[buffersize]); in decode()
6382 out.insert(out.end(), &buffer[0], &buffer[buffersize]); in decode()
6414 out.insert(out.end(), &buffer[0], &buffer[buffersize]); in encode()
6434 out.insert(out.end(), &buffer[0], &buffer[buffersize]); in encode()