using namespace std; #include #include #include #include #include #include #include #include #include #include #include #include #include #define CODE1 0xFF //VRL #define CODE2 0x46 //kadr #define CODE3 0xD5 //header #define CODE_BYTE1 0xFA //PAMELA #define CODE_BYTE2 0xFE //packet #define CODE_BYTE3 0xDE //header #define NumberPack (int)(53) //Number of PAMELA packets #define copy(x) ((x)>0 ? "cp" : "copy") #define dir(y) ((y)>0 ? "mkdir" : "md") #define Nmax (int)(1.*powf(10.,8.))//maximum allowable size of buffer, in bytes #define Limit (int)(1.*powf(10.,5.))//maximum size of PAMELA packet, in bytes