commsfwutils/commsbufs/TS_mbufmgr/Test06SplitL.cpp
branchRCL_3
changeset 66 cbb19216b74d
parent 29 9644881fedd0
child 69 9d7ce34704c8
equal deleted inserted replaced
48:07656293a99c 66:cbb19216b74d
   160 	aChain1.CopyIn(*aDes1);
   160 	aChain1.CopyIn(*aDes1);
   161 
   161 
   162 	//-------------- substep 7 --------------------
   162 	//-------------- substep 7 --------------------
   163 	Log(_L("  07 Split Chain1. The 2nd part goes to Chain2:"));
   163 	Log(_L("  07 Split Chain1. The 2nd part goes to Chain2:"));
   164 	RMBufChain aChain2;
   164 	RMBufChain aChain2;
   165 	TRAP(ret,aChain1.SplitL(aOffset, aChain2));
   165 	
       
   166 	if(forceSmallBuf)
       
   167 	    {
       
   168         RMBufAllocator allocator;
       
   169         ret= aChain1.Split(aOffset, aChain2, allocator);
       
   170 	    }
       
   171 	else
       
   172 	    {
       
   173         TRAP(ret,aChain1.SplitL(aOffset, aChain2));
       
   174 	    }
       
   175 	
   166 	if (ret != KErrNone)
   176 	if (ret != KErrNone)
   167 		{
   177 		{
   168 		Log(_L("Error: Couldn't Split"));
   178 		Log(_L("Error: Couldn't Split"));
   169 		aChain1.Free();
   179 		aChain1.Free();
   170 		aChain2.Free();
   180 		aChain2.Free();