1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: enc_Utility.h 4 5 Copyright (C)2009-2012 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: 46347 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_ENC_ENC_UTILITY_H_ 17 #define NN_ENC_ENC_UTILITY_H_ 18 19 #include <nn/enc/enc_Result.h> 20 #include <nn/enc/enc_Types.h> 21 22 #ifdef __cplusplus 23 24 namespace nn { namespace enc { namespace detail { 25 26 Result CheckParameters( 27 bool dst, s32 *pGivenDstSize, s32 *pDstSize, bool *pWriteMode, 28 bool src, s32 *pGivenSrcSize, s32 *pSrcSize, bool *pReadCheck 29 ); 30 31 s32 CheckBreakType(u32 cur, u32 next); 32 33 s32 WriteBreakType(u8* pDst, u32 step, BreakType brType, bool writeMode); 34 35 }}} 36 37 #endif // __cplusplus 38 39 #endif /* NN_ENC_ENC_UTILITY_H_ */ 40