cryptomgmtlibs/securitycommonutils/source/ipcstream/ipcstream.cpp
changeset 8 35751d3474b7
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * Library to add s32strm support for IPC (ie. stream via multiple IPC read/writes instead of
       
    16 * copying to a buffer and streaming to/from there.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23 */
       
    24 #include "ipcstream.h"
       
    25 
       
    26 EXPORT_C RIpcReadStream::RIpcReadStream()
       
    27 /**
       
    28 Constructor
       
    29 */
       
    30 : RReadStream(), iSource()
       
    31 	{	
       
    32 	}
       
    33 
       
    34 EXPORT_C void RIpcReadStream::Open(const RMessagePtr2& aMessage, TInt aMessageSlot)
       
    35 	{
       
    36 	iSource.Open(aMessage, aMessageSlot);
       
    37 	Attach(&iSource);
       
    38 	}
       
    39 
       
    40 
       
    41 EXPORT_C RIpcWriteStream::RIpcWriteStream()
       
    42 /**
       
    43 Constructor
       
    44 */
       
    45 : RWriteStream(), iSource()
       
    46 	{	
       
    47 	}
       
    48 	
       
    49 EXPORT_C void RIpcWriteStream::Open(const RMessagePtr2& aMessage, TInt aMessageSlot)
       
    50 	{
       
    51 	iSource.Open(aMessage, aMessageSlot);
       
    52 	Attach(&iSource);
       
    53 	}
       
    54 
       
    55 // End of file