fix problems with the essentially untested packer
buffer.set16(): method to set a 16-bit length field after the data is emitted Packer.addbyte(): call underlying buffer add_byte(). Packer.addstring(): chr() call not needed Packer.endRR(): call self.buf.set16() to set RR length Unpacker.getstring(): ord() call not needed Unpacker.getHINFOdata(): useless, but since addHINFOdata() is there... Unpacker.unpack(): cut & paste typo
Showing
Please register or sign in to comment