(self)
return type_string + data
Return serialized bytes object.
Return serialized bytes object.
Return serialized bytes object .
def serialize(self):
        """Return serialized bytes object."""
        data = self.to_bytes()
        type_string = bytes(self.TYPE, 'utf-8').rjust(10)[:10]

        return type_string + data
def serialize ( self ) : data = self . to_bytes ( ) type_string = bytes ( self . TYPE , 'utf-8' ) . rjust ( 10 ) [ : 10 ] return type_string + data