Nu AMF_Tester via stdin ipv files
This commit is contained in:
parent
0a8a81e0e6
commit
e1035aad46
2 changed files with 5 additions and 6 deletions
Binary file not shown.
|
@ -5,15 +5,14 @@
|
|||
#include <string>
|
||||
#include "amf.cpp"
|
||||
|
||||
int main( int argc, char * argv[] ) {
|
||||
if( argc != 2 ) { return 1; }
|
||||
int main() {
|
||||
std::string temp;
|
||||
std::ifstream ifs( argv[1] );
|
||||
while( ifs.good() ) {
|
||||
temp += ifs.get();
|
||||
while( std::cin.good() ) {
|
||||
temp += std::cin.get();
|
||||
}
|
||||
static AMFType amfdata("empty", (unsigned char)0xFF);
|
||||
static AMFType amfdata("empty", (unsigned char)AMF0_DDV_CONTAINER);
|
||||
amfdata = parseAMF( (const unsigned char*)temp.c_str(), temp.length()-1 );
|
||||
amfdata.Print( );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue