Пример #1
0
		void CopyBuffer () {
			
			mOutput.append (mTmpBuf, BUF_SIZE);
			pub.next_output_byte = mTmpBuf;
			pub.free_in_buffer = BUF_SIZE;
			
		}
Пример #2
0
void user_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
{
    QuickVec<unsigned char> *buffer = (QuickVec<unsigned char> *)png_get_io_ptr(png_ptr);
    buffer->append((unsigned char *)data,(int)length);
} 
Пример #3
0
 void TermBuffer()
 {
    mOutput.append( mTmpBuf, BUF_SIZE - pub.free_in_buffer );
 }