Skip to content

shouganai/amf-cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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<uint8_t>, call the .data() member function.

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

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

Build instructions

Linux / OS X / 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 only, this project hasn't been tested with 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

Since this project makes heavy use of C++11 features, the Visual Studio 2013 preview is required to compile it.

To build the library, 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

Packages

No packages published