Lines Matching refs:keysize

5197   size_t keysize = lodepng_strlen(keyword), textsize = lodepng_strlen(textstring);  in addChunk_tEXt()  local
5198 size_t size = keysize + 1 + textsize; in addChunk_tEXt()
5199 if(keysize < 1 || keysize > 79) return 89; /*error: invalid keyword size*/ in addChunk_tEXt()
5201 lodepng_memcpy(chunk + 8, keyword, keysize); in addChunk_tEXt()
5202 chunk[8 + keysize] = 0; /*null termination char*/ in addChunk_tEXt()
5203 lodepng_memcpy(chunk + 9 + keysize, textstring, textsize); in addChunk_tEXt()
5215 size_t keysize = lodepng_strlen(keyword); in addChunk_zTXt() local
5216 if(keysize < 1 || keysize > 79) return 89; /*error: invalid keyword size*/ in addChunk_zTXt()
5221 size_t size = keysize + 2 + compressedsize; in addChunk_zTXt()
5225 lodepng_memcpy(chunk + 8, keyword, keysize); in addChunk_zTXt()
5226 chunk[8 + keysize] = 0; /*null termination char*/ in addChunk_zTXt()
5227 chunk[9 + keysize] = 0; /*compression method: 0*/ in addChunk_zTXt()
5228 lodepng_memcpy(chunk + 10 + keysize, compressed, compressedsize); in addChunk_zTXt()
5243 …size_t keysize = lodepng_strlen(keyword), langsize = lodepng_strlen(langtag), transsize = lodepng_… in addChunk_iTXt() local
5245 if(keysize < 1 || keysize > 79) return 89; /*error: invalid keyword size*/ in addChunk_iTXt()
5252 … size_t size = keysize + 3 + langsize + 1 + transsize + 1 + (compress ? compressedsize : textsize); in addChunk_iTXt()
5257 lodepng_memcpy(chunk + pos, keyword, keysize); in addChunk_iTXt()
5258 pos += keysize; in addChunk_iTXt()
5359 size_t keysize = lodepng_strlen(info->iccp_name); in addChunk_iCCP() local
5361 if(keysize < 1 || keysize > 79) return 89; /*error: invalid keyword size*/ in addChunk_iCCP()
5365 size_t size = keysize + 2 + compressedsize; in addChunk_iCCP()
5369 lodepng_memcpy(chunk + 8, info->iccp_name, keysize); in addChunk_iCCP()
5370 chunk[8 + keysize] = 0; /*null termination char*/ in addChunk_iCCP()
5371 chunk[9 + keysize] = 0; /*compression method: 0*/ in addChunk_iCCP()
5372 lodepng_memcpy(chunk + 10 + keysize, compressed, compressedsize); in addChunk_iCCP()