def _pkt_make_header(self, pktlength, pktnr=None): """Make the header for a MySQL packet""" pktnr = pktnr or self.pktnr+1 return utils.int3store(pktlength) + utils.int1store(pktnr)
def _make_header(self): h = utils.int3store(len(self)) + utils.int1store(self.pktnr) return h
def add_3_int(self, i): self.add(utils.int3store(i))
def _pkt_make_header(self, pktlength, pktnr=None): """Make the header for a MySQL packet""" pktnr = pktnr or self.pktnr + 1 return utils.int3store(pktlength) + utils.int1store(pktnr)