void TSOut::Save(TSIn& SIn, const int& BfL){ if (BfL==-1){ while (!SIn.Eof()){Save(SIn.GetCh());} } else { for (int BfC=0; BfC<BfL; BfC++){Save(SIn.GetCh());} } }
void TSOut::Save(TSIn& SIn, const TSize& BfL){ Fail; if (BfL==0){ //J: used to be ==-1 while (!SIn.Eof()){Save(SIn.GetCh());} } else { for (TSize BfC=0; BfC<BfL; BfC++){Save(SIn.GetCh());} } }
TMIn::TMIn(TSIn& SIn): TSBase("Input-Memory"), TSIn("Input-Memory"), Bf(NULL), BfC(0), BfL(0){ BfL=SIn.Len(); Bf=new char[BfL]; for (int BfC=0; BfC<BfL; BfC++){Bf[BfC]=SIn.GetCh();} }