How To Deserialize And Serialize Amf Packets In Python?
I am rewriting the following Perl code in Python: my $data = Data::AMF::Packet->new->deserialize($packet); $data->messages->[0]->{value}->[1] = $data->mess
Solution 1:
Something along the lines of:
from pyamf import remoting
packet = remoting.decode(bytes)
packet['/1'][1] = packet['/2'][1]
stream = remoting.encode(packet)
bytes = stream.getvalue()
Post a Comment for "How To Deserialize And Serialize Amf Packets In Python?"