My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Examples  
Example codes.
Featured
Updated Nov 5, 2011 by gloriousage

Examples

// include header file here.
#include <amf.h>
#include <iostream>

// decode a binary AMF0 chunk. 
void decode(const char* buf, boost::uint32_t buf_size)
{
    using namespace amf;

    amf_list lst;

    lst.decode(buf, buf_size);

    for (int i=0; i<lst.count(); ++i)
    {
        // shared_ptr
        amf_data_ptr item = lst.at(i);

        std::cout << item->to_string() << std::endl;
    }
}
Powered by Google Project Hosting