def serialize(self):
    r = b''
    r += ser_string(self.data)
    r += struct.pack('<I', self.nHashFuncs)
    r += struct.pack('<I', self.nTweak)
    r += struct.pack('<B', self.nFlags)
    return r
def serialize(self):
    r = b
    r += ser_string(self.data)
    r += struct.pack('<I', self.nHashFuncs)
    r += struct.pack('<I', self.nTweak)
    r += struct.pack('<B', self.nFlags)
    return r