/*---------------------------------------------------------------------------* Project: Horizon File: fs_IOutputStream.h Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 29703 $ *---------------------------------------------------------------------------*/ #ifndef NN_FS_FS_IOUTPUTSTREAM_H_ #define NN_FS_FS_IOUTPUTSTREAM_H_ #include namespace nn { namespace fs { class IOutputStream : public virtual IPositionable { public: virtual ~IOutputStream() {}; virtual Result TryWrite(s32* pOut, const void* buffer, size_t size, bool flush=true) = 0; virtual s32 Write(const void* buffer, size_t size, bool flush=true) = 0; virtual Result TrySetSize(s64 size) = 0; virtual void SetSize(s64 size) = 0; }; } } #endif /* NN_FS_FS_IOUTPUTSTREAM_H_ */