os/kernelhwsrv/userlibandfileserver/fileserver/shostmassstorage/server/protocol/tscsiclientreq.cpp
First public contribution.
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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
25 #include "mprotocol.h"
26 #include "tscsiclientreq.h"
29 TInt TScsiClientReq::EncodeRequestL(TDes8& aBuffer) const
33 switch (GetGroupCode())
45 User::Leave(KErrNotSupported);
48 aBuffer.SetLength(length);
52 aBuffer[0] = iOperationCode;
54 // CONTROL byte is last element of Command
55 aBuffer[length - 1] = GetControlByte();