os/security/securityanddataprivacytools/securitytools/certapp/store--/s32buf.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200 (2014-06-10)
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 #include <s32buf.h>
     2 #include "logger.h"/*
     3 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     4 * All rights reserved.
     5 * This component and the accompanying materials are made available
     6 * under the terms of the License "Eclipse Public License v1.0"
     7 * which accompanies this distribution, and is available
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 *
    10 * Initial Contributors:
    11 * Nokia Corporation - initial contribution.
    12 *
    13 * Contributors:
    14 *
    15 * Description: 
    16 *
    17 */
    18 
    19 
    20 void MStreamBuf::Close()
    21 {
    22 	Release();
    23 }
    24 
    25 void MStreamBuf::DoRelease()
    26 {
    27 }
    28 
    29 void MStreamBuf::Release()
    30 {
    31 	DoRelease();
    32 }
    33 
    34 void MStreamBuf::SynchL()
    35 {
    36 }
    37 
    38 
    39 TInt MStreamBuf::ReadL(TAny *aPtr,TInt aMaxLength)
    40 {
    41 	return DoReadL(aPtr, aMaxLength);
    42 }
    43 
    44 void MStreamBuf::WriteL(const TUint8* aPtr,TInt aLength)
    45 {
    46 	DoWriteL(aPtr, aLength);
    47 }
    48 
    49 void MStreamBuf::SeekL(TMark aMark,TStreamPos aPos)
    50 {
    51 	DoSeekL(aMark,EStreamBeginning,aPos);
    52 }
    53 
    54 TStreamPos MStreamBuf::SeekL(TMark aMark,TStreamLocation aLocation,TInt anOffset)
    55 {
    56 	return DoSeekL(aMark,aLocation,anOffset);
    57 }
    58 
    59 TStreamPos MStreamBuf::SeekL(TRead,TStreamLocation aLocation,TInt anOffset)
    60 {
    61 	return DoSeekL(ERead,aLocation,anOffset);
    62 }
    63 
    64 TStreamPos MStreamBuf::SeekL(TWrite,TStreamLocation aLocation,TInt anOffset)
    65 {
    66 	return DoSeekL(EWrite,aLocation,anOffset);
    67 }
    68 
    69 TStreamPos MStreamBuf::SeekL(TRead,TInt anOffset)
    70 {
    71 	return DoSeekL(ERead,EStreamMark,anOffset);
    72 }
    73 
    74 TStreamPos MStreamBuf::SeekL(TWrite,TInt anOffset)
    75 {
    76 	return DoSeekL(EWrite,EStreamMark,anOffset);
    77 }
    78 
    79 TStreamPos MStreamBuf::TellL(TRead) const
    80 {
    81 	return const_cast<MStreamBuf*>(this)->DoSeekL(ERead,EStreamMark,0);
    82 }
    83 
    84 TStreamPos MStreamBuf::TellL(TWrite) const
    85 {
    86 	return const_cast<MStreamBuf*>(this)->DoSeekL(EWrite,EStreamMark,0);
    87 }
    88 
    89 
    90 
    91 
    92 TStreamPos MStreamBuf::DoSeekL(TMark,TStreamLocation,TInt)
    93 {
    94 	dbg << Log::Indent() << "MStreamBuf::DoSeekL not supported" << Log::Endl();
    95 	FatalError();
    96 	return -1;
    97 }
    98 
    99 
   100 
   101 
   102 // End of file