Memset (downData, '\ 0', 1024);
Sand_Trans (upData, downData);
The delete upData.
Return AnsiString (downData);
AnsiString here always fail to provide all the required data has been truncated, but the inside of the Sand_Trans log data is complete, is this what is the matter?
CodePudding user response:
Someone at?????CodePudding user response:
Sand_Trans (upData, downData);//the source and destination rightCodePudding user response:
Sand_trans finally returns, logs, output data is rightCodePudding user response:
DownData, inside the sand_Trans I converted to structure the copy the value of the object, the members of this structure are unsigned char typeCodePudding user response:
Unsigned char * downData=https://bbs.csdn.net/topics/new char [1024];Memset (downData, '\ 0', 1024);
Sand_Trans (upData, downData);
The delete upData.
Return AnsiString (downData);
CodePudding user response:
See if upData inside contain '\ 0', if any, AnsiString would think that is the end, the data behind the ignored,