Skip to content

Instantly share code, notes, and snippets.

View buzzySmile's full-sized avatar

Alexander Makarov buzzySmile

  • Bishkek City, Kyrgyzstan
View GitHub Profile
@buzzySmile
buzzySmile / qba_cutter.hpp
Last active August 29, 2015 13:57
QByteArray Chunk Cutter
#include <QByteArray>
/// Extension of class QByteArray:
/// allows cut off a chunk from begining of byte array
/// chunk is equivalent quint8, quint16 or quint32 by length
class qBA_cutter: public QByteArray
{
private:
union {
quint16 sshort;