📄 yc_rscalgo.h
字号:
/*
* The young Library
* Copyright (c) 2005 by Yang Huan(杨桓)
* Permission to use, copy, modify, distribute and sell this software for any
* purpose is hereby granted without fee, provided that the above copyright
* notice appear in all copies and that both that copyright notice and this
* permission notice appear in supporting documentation.
* The author make no representations about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
*/
/******************************************************************************/
/******************************************************************************/
#ifndef __MACRO_C_YOUNG_LIBRARY_RESOURCE_ALGORITHM_HEADER_FILE__
#define __MACRO_C_YOUNG_LIBRARY_RESOURCE_ALGORITHM_HEADER_FILE__
/******************************************************************************/
#include "yc_definition.h"
#ifdef __cplusplus
namespace youngc { extern "C" {
#endif
/******************************************************************************/
/******************************************************************************/
void* rsccopy( void* dst,
const void* src,
size_t count,
size_t dst_element_size,
size_t src_element_size,
ylib_fp_copy_t copy_value );
void* rscmove( void* dst,
void* src,
size_t count,
size_t dst_element_size,
size_t src_element_size,
ylib_fp_move_t move_value );
void* rscfill( void* dst,
const void* value,
size_t count,
size_t element_size,
ylib_fp_copy_t copy_value );
/* reverse copy resource */
void* rrsccopy( void* dst_last,
const void* src_last,
size_t count,
size_t dst_element_size,
size_t src_element_size,
ylib_fp_copy_t copy_value );
/* reverse move resource */
void* rrscmove( void* dst_last,
void* src_last,
size_t count,
size_t dst_element_size,
size_t src_element_size,
ylib_fp_move_t move_value );
void foreach( void* first,
size_t count,
size_t element_size,
ylib_fp_oper_t oper );
/* reverse iterate */
void rforeach( void* last,
size_t count,
size_t element_size,
ylib_fp_oper_t oper );
/******************************************************************************/
/******************************************************************************/
#ifdef __cplusplus
} }
#endif
#endif
/******************************************************************************/
/******************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -