Data::AMF(3)

πŸ“¦
version 0.09 Β· 2 versions
, in fedora 43

✨ Data::AMF ✨

okay bestie so Data::AMF is the module that serializes and deserializes AMF data, and it is literally so useful, i promise 🫢


🌸 SYNOPSIS 🌸

use Data::AMF;

my $amf0 = Data::AMF->new( version => 0 );
my $amf3 = Data::AMF->new( version => 3 );

# AMF0 to Perl Object
my $obj = $amf0->deserialize($data);

# Perl Object to AMF0
my $data = $amf0->serialize($obj);

no cap, that's the whole vibe πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this module is a (de)serializer for Adobe's AMF (Action Message Format). iconic honestly.

Data::AMF is a core module and it recognizes only AMF data, not AMF packet. and the way that matters is… if you actually wanna read/write an AMF Packet, you should go see Data::AMF::Packet instead, bestie. that one's got you πŸŽ€


πŸ’– SEE ALSO πŸ’–

  • Data::AMF::Packet
  • Catalyst::Controller::FlashRemoting

πŸ’€ NOTICE πŸ’€

okay so not to be dramatic but… Data::AMF is currently in a very early alpha development stage. 😭

the current version does not support AMF3, and the application interface is still fluid. so like, don't build your whole personality on it yet, fr fr πŸ™ˆ


🌈 METHOD 🌈

new(%option)

creates the Data::AMF object ✨

the option parameters are:

  • version β€” the target AMF version. it should be 0 or 3. (and the default is 0, for AMF0, if you don't say anything) πŸ’œ

serialize($obj)

serializes the perl object ($obj) to AMF, and returns the AMF data. slay πŸ”₯

deserialize($amf)

deserializes the AMF data to a perl object, and returns the perl object. main character energy honestly πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Daisuke Murase <typester@cpan.org>


This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


and that's the whole page, bestie πŸ’– this one's from perl v5.42.0, dated 2025-07-25, and it's the Data::AMF(3) page β€” read it, loved it, periodt ✨🧚

πŸ“¦ where this page comes from