void CopyBuffer () { mOutput.append (mTmpBuf, BUF_SIZE); pub.next_output_byte = mTmpBuf; pub.free_in_buffer = BUF_SIZE; }
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); }
void TermBuffer() { mOutput.append( mTmpBuf, BUF_SIZE - pub.free_in_buffer ); }