Skip to content

junfan/amf-cpp

 
 

Repository files navigation

amf-cpp

Build Status

A C++ implementation of the Action Message Format (AMF3)

License

This project is licensed under the MIT/X11 license. See LICENSE.

Documentation

So far, only serialization is supported, and the serialization API is still subject to change. Proper documentation will follow once the API is stabilized.

If you want to try the serialization, simply create the AMF objects (see types/amf*.hpp) and insert them into a Serializer object. To get the serialized data as std::vector<u8>, call the .data() member function.

Serializer serializer;
serializer << AmfDouble(3.14159) << AmfInteger(17);
AmfVector<int> vec({ 1, 2, 3 });
serializer << vec;

std::vector<u8> data = serializer.data();

Build instructions

Linux / Unix

Building this project requires a reasonably recent C++ compiler with (at least partial) C++11 support (GCC >= 4.6 and Clang >= 3.1 should work), as well as make (probably GNU make, this wasn't tested with any other versions).

To build the library, just run make from the project directory, make 32bit explicitly builds a 32bit library. make test builds and runs the unit tests.

Windows

There is a Visual Studio 2012 (might or might not work in 2010) solution in the vs branch. This branch isn't very actively maintained and thus usually doesn't contain the latest changes from the master branch.

To build this project, simply open amf-cpp.sln and build the amf-cpp project. To run the unit tests, build and run the test project.

About

A C++ implementation of the Action Message Format (AMF3)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published