equal
deleted
inserted
replaced
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(); |