[xml] Regarding Encoding Conversion In xmlOutputBufferWrite()



Hi All

In xmlOutputBufferWrite function the encoding conversion is done if and only if the used size of the buffer is greater than the MINLEN (4000)

or the number of characters to be written currently is not equal to the total number of characters to be written. Hence when the total no of

Characters to be written to the buffer is less than or equal to the four times of MINLEN (4000) encoding conversion never happens until the used

Buffer size exceeds 4000.

I am not getting why it is so.

if (out->encoder != NULL) {       

chunk = len;

…………….

……………

if ((out->buffer->use < MINLEN) && (chunk == len))

              goto done;

…………..

Conversion Logic is Here

………….

}

 

Thanks and Regards

       Rabi

 

 

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]