|
Examples
Example codes.
Featured 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;
}
}
|