mistserver/AMF_Tester/main.cpp
2011-03-13 20:46:07 +01:00

18 lines
420 B
C++

#define DEBUG 10 //maximum debugging level evah
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
#include "amf.cpp"
int main() {
std::string temp;
while( std::cin.good() ) {
temp += std::cin.get();
}
static AMFType amfdata("empty", (unsigned char)AMF0_DDV_CONTAINER);
amfdata = parseAMF( (const unsigned char*)temp.c_str(), temp.length()-1 );
amfdata.Print( );
return 0;
}