Data::AMF(3)
β¨ 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::PacketCatalyst::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 be0or3. (and the default is0, 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>
π COPYRIGHT π
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
- fedora 43: perl-Data-AMF 0.09-41.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms