if(archive.open(QIODevice::WriteOnly)) { archive.write(m_Buffer); archive.close(); }
C++ (Qt)if ( archive.open( QIODevice::WriteOnly | QIODevice::Append ) ){ archive.write( packet ); archive.close();}