1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     fs_IInputStream.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 12449 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_FS_FS_IINPUTSTREAM_H_
17 #define NN_FS_FS_IINPUTSTREAM_H_
18 
19 #include <nn/fs/fs_IPositionable.h>
20 
21 namespace nn {
22 namespace fs {
23 
24 class IInputStream : public virtual IPositionable
25 {
26 public:
~IInputStream()27     virtual ~IInputStream() {};
28 
29     virtual Result TryRead(s32* pOut, void* buffer, size_t size) = 0;
30     virtual s32 Read(void* buffer, size_t size) = 0;
31 };
32 
33 }
34 }
35 
36 #endif /* NN_FS_FS_IINPUTSTREAM_H_ */
37