kerneltest/f32test/shostmassstorage/msman/test/cblockdevicetester.inl
changeset 43 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 43:96e5fb8b040d
       
     1 // Copyright (c) 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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 
       
    24 inline TPos TLbaUtils::Pos(TLba aLba)
       
    25     {
       
    26     return static_cast<TInt64>(aLba) * KBlockSize;
       
    27     }
       
    28 
       
    29 inline TUint32 TLbaUtils::Length(TLba aBlocks)
       
    30     {
       
    31     return static_cast<TUint32>(aBlocks) * KBlockSize;
       
    32     }
       
    33 
       
    34 inline TPos RTargetDrive::StartPos() const
       
    35     {
       
    36     return static_cast<TInt64>(iStartLba) * KBlockSize;
       
    37     }
       
    38 
       
    39 
       
    40 inline TPos RTargetDrive::TargetPos(TInt aPos) const
       
    41     {
       
    42     return StartPos() + aPos;
       
    43     }