equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file |
|
15 // @internalTechnology |
|
16 // |
|
17 // |
|
18 |
|
19 #include "ss_eintsock_msgs.h" |
|
20 |
|
21 TInt TEIntSockOpMsgWrapper::WriteDesc(TInt aIndex, const TDesC8& aDesc, TInt aOffset) |
|
22 { |
|
23 TDes8* des = ( TDes8* )iArgs.iArgs [ aIndex ]; |
|
24 |
|
25 if ( des->MaxLength() < aOffset ) |
|
26 return KErrOverflow; |
|
27 |
|
28 des->SetLength ( aOffset ); |
|
29 if ( ( aDesc.Length() + des->Length() ) > des->MaxLength() ) |
|
30 return KErrOverflow; |
|
31 else |
|
32 des->Append ( aDesc ); |
|
33 return KErrNone; |
|
34 } |
|
35 |