WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
securecutil.h 文件参考
#include "securec.h"
securecutil.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  SecStrBuf2
 
struct  SecStrBuf3
 
struct  SecStrBuf4
 
struct  SecStrBuf5
 
struct  SecStrBuf6
 
struct  SecStrBuf7
 
struct  SecStrBuf8
 
struct  SecStrBuf9
 
struct  SecStrBuf10
 
struct  SecStrBuf11
 
struct  SecStrBuf12
 
struct  SecStrBuf13
 
struct  SecStrBuf14
 
struct  SecStrBuf15
 
struct  SecStrBuf16
 
struct  SecStrBuf17
 
struct  SecStrBuf18
 
struct  SecStrBuf19
 
struct  SecStrBuf20
 
struct  SecStrBuf21
 
struct  SecStrBuf22
 
struct  SecStrBuf23
 
struct  SecStrBuf24
 
struct  SecStrBuf25
 
struct  SecStrBuf26
 
struct  SecStrBuf27
 
struct  SecStrBuf28
 
struct  SecStrBuf29
 
struct  SecStrBuf30
 
struct  SecStrBuf31
 
struct  SecStrBuf32
 
struct  SecStrBuf33
 
struct  SecStrBuf34
 
struct  SecStrBuf35
 
struct  SecStrBuf36
 
struct  SecStrBuf37
 
struct  SecStrBuf38
 
struct  SecStrBuf39
 
struct  SecStrBuf40
 
struct  SecStrBuf41
 
struct  SecStrBuf42
 
struct  SecStrBuf43
 
struct  SecStrBuf44
 
struct  SecStrBuf45
 
struct  SecStrBuf46
 
struct  SecStrBuf47
 
struct  SecStrBuf48
 
struct  SecStrBuf49
 
struct  SecStrBuf50
 
struct  SecStrBuf51
 
struct  SecStrBuf52
 
struct  SecStrBuf53
 
struct  SecStrBuf54
 
struct  SecStrBuf55
 
struct  SecStrBuf56
 
struct  SecStrBuf57
 
struct  SecStrBuf58
 
struct  SecStrBuf59
 
struct  SecStrBuf60
 
struct  SecStrBuf61
 
struct  SecStrBuf62
 
struct  SecStrBuf63
 
struct  SecStrBuf64
 

宏定义

#define SECUREC_MASK_MSVC_CRT_WARNING
 
#define SECUREC_END_MASK_MSVC_CRT_WARNING
 
#define SECUREC_WHILE_ZERO   SECUREC_MASK_MSVC_CRT_WARNING while (0) SECUREC_END_MASK_MSVC_CRT_WARNING
 
#define SECUREC_HAVE_STRNLEN   0
 
#define SECUREC_ENABLE_SCANF_FILE   1
 
#define SECUREC_HAVE_WCHART   1
 
#define SECUREC_ENABLE_INLINE   0
 
#define SECUREC_INLINE   static
 
#define SECUREC_WARP_OUTPUT   0
 
#define SECUREC_STREAM_STDIN   stdin
 
#define SECUREC_MUL_SIXTEEN(x)   ((x) << 4U)
 
#define SECUREC_MUL_EIGHT(x)   ((x) << 3U)
 
#define SECUREC_MUL_TEN(x)   ((((x) << 2U) + (x)) << 1U)
 
#define SECUREC_MAX_WIDTH_LEN_DIV_TEN   21474836
 
#define SECUREC_MAX_WIDTH_LEN   (SECUREC_MAX_WIDTH_LEN_DIV_TEN * 10)
 
#define SECUREC_MUL_TEN_ADD_BEYOND_MAX(x)   (((x) > SECUREC_MAX_WIDTH_LEN_DIV_TEN))
 
#define SECUREC_FLOAT_BUFSIZE   (309 + 40) /* Max length of double value */
 
#define SECUREC_FLOAT_BUFSIZE_LB   (4932 + 40) /* Max length of long double value */
 
#define SECUREC_FLOAT_DEFAULT_PRECISION   6
 
#define SECUREC_MEMORY_NO_OVERLAP(dest, src, count)
 
#define SECUREC_MEMORY_IS_OVERLAP(dest, src, count)
 
#define SECUREC_STRING_NO_OVERLAP(dest, src, len)
 
#define SECUREC_STRING_IS_OVERLAP(dest, src, len)
 
#define SECUREC_CAT_STRING_IS_OVERLAP(dest, destLen, src, srcLen)
 
#define SECUREC_CALC_STR_LEN(str, maxLen, outLen)
 
#define SECUREC_CALC_STR_LEN_OPT   SECUREC_CALC_STR_LEN
 
#define SECUREC_CALC_WSTR_LEN(str, maxLen, outLen)
 
#define SECUREC_MEMSET_FUNC_OPT   memset
 
#define SECUREC_MEMCPY_FUNC_OPT   memcpy
 
#define SECUREC_MEMCPY_WARP_OPT(dest, src, count)   (void)SECUREC_MEMCPY_FUNC_OPT((dest), (src), (count))
 
#define SECUREC_MEMSET_BARRIER   0
 
#define SECUREC_MEMSET_INDIRECT_USE   1
 
#define SECUREC_MEMORY_BARRIER(dest)
 
#define SECUREC_MEMSET_PREVENT_DSE(dest, value, count)
 
#define SECUREC_ADDR_ALIGNED_8(addr)   ((((size_t)(addr)) & 7U) == 0) /* Use 7 to check aligned 8 */
 
#define SECUREC_MALLOC(x)   malloc((size_t)(x))
 
#define SECUREC_FREE(x)   free((void *)(x))
 
#define SECUREC_COPY_VALUE_BY_STRUCT(dest, src, n)
 
#define SECUREC_ERROR_INVALID_PARAMTER(msg)
 
#define SECUREC_ERROR_INVALID_RANGE(msg)
 
#define SECUREC_ERROR_BUFFER_OVERLAP(msg)
 

宏定义说明

◆ SECUREC_ADDR_ALIGNED_8

#define SECUREC_ADDR_ALIGNED_8 (   addr)    ((((size_t)(addr)) & 7U) == 0) /* Use 7 to check aligned 8 */

◆ SECUREC_CALC_STR_LEN

#define SECUREC_CALC_STR_LEN (   str,
  maxLen,
  outLen 
)
值:
do { \
const char *strEnd_ = (const char *)(str); \
size_t availableSize_ = (size_t)(maxLen); \
while (availableSize_ > 0 && *strEnd_ != '\0') { \
--availableSize_; \
++strEnd_; \
} \
*(outLen) = (size_t)(strEnd_ - (str)); \
UINT32 size_t
Definition los_typedef.h:78
#define SECUREC_WHILE_ZERO
Definition securecutil.h:29

◆ SECUREC_CALC_STR_LEN_OPT

#define SECUREC_CALC_STR_LEN_OPT   SECUREC_CALC_STR_LEN

◆ SECUREC_CALC_WSTR_LEN

#define SECUREC_CALC_WSTR_LEN (   str,
  maxLen,
  outLen 
)
值:
do { \
const wchar_t *strEnd_ = (const wchar_t *)(str); \
size_t len_ = 0; \
while (len_ < (maxLen) && *strEnd_ != L'\0') { \
++len_; \
++strEnd_; \
} \
*(outLen) = len_; \

◆ SECUREC_CAT_STRING_IS_OVERLAP

#define SECUREC_CAT_STRING_IS_OVERLAP (   dest,
  destLen,
  src,
  srcLen 
)
值:
(((dest) < (src) && ((dest) + (destLen) + (srcLen)) >= (src)) || \
((src) < (dest) && ((src) + (srcLen)) >= (dest)))

◆ SECUREC_COPY_VALUE_BY_STRUCT

#define SECUREC_COPY_VALUE_BY_STRUCT (   dest,
  src,
 
)
值:
do { \
*(SecStrBuf##n *)(void *)(dest) = *(const SecStrBuf##n *)(const void *)(src); \

◆ SECUREC_ENABLE_INLINE

#define SECUREC_ENABLE_INLINE   0

◆ SECUREC_ENABLE_SCANF_FILE

#define SECUREC_ENABLE_SCANF_FILE   1

◆ SECUREC_END_MASK_MSVC_CRT_WARNING

#define SECUREC_END_MASK_MSVC_CRT_WARNING

◆ SECUREC_ERROR_BUFFER_OVERLAP

#define SECUREC_ERROR_BUFFER_OVERLAP (   msg)

◆ SECUREC_ERROR_INVALID_PARAMTER

#define SECUREC_ERROR_INVALID_PARAMTER (   msg)

◆ SECUREC_ERROR_INVALID_RANGE

#define SECUREC_ERROR_INVALID_RANGE (   msg)

◆ SECUREC_FLOAT_BUFSIZE

#define SECUREC_FLOAT_BUFSIZE   (309 + 40) /* Max length of double value */

◆ SECUREC_FLOAT_BUFSIZE_LB

#define SECUREC_FLOAT_BUFSIZE_LB   (4932 + 40) /* Max length of long double value */

◆ SECUREC_FLOAT_DEFAULT_PRECISION

#define SECUREC_FLOAT_DEFAULT_PRECISION   6

◆ SECUREC_FREE

#define SECUREC_FREE (   x)    free((void *)(x))

◆ SECUREC_HAVE_STRNLEN

#define SECUREC_HAVE_STRNLEN   0

◆ SECUREC_HAVE_WCHART

#define SECUREC_HAVE_WCHART   1

◆ SECUREC_INLINE

#define SECUREC_INLINE   static

◆ SECUREC_MALLOC

#define SECUREC_MALLOC (   x)    malloc((size_t)(x))

◆ SECUREC_MASK_MSVC_CRT_WARNING

#define SECUREC_MASK_MSVC_CRT_WARNING

◆ SECUREC_MAX_WIDTH_LEN

#define SECUREC_MAX_WIDTH_LEN   (SECUREC_MAX_WIDTH_LEN_DIV_TEN * 10)

◆ SECUREC_MAX_WIDTH_LEN_DIV_TEN

#define SECUREC_MAX_WIDTH_LEN_DIV_TEN   21474836

◆ SECUREC_MEMCPY_FUNC_OPT

#define SECUREC_MEMCPY_FUNC_OPT   memcpy

◆ SECUREC_MEMCPY_WARP_OPT

#define SECUREC_MEMCPY_WARP_OPT (   dest,
  src,
  count 
)    (void)SECUREC_MEMCPY_FUNC_OPT((dest), (src), (count))

◆ SECUREC_MEMORY_BARRIER

#define SECUREC_MEMORY_BARRIER (   dest)

◆ SECUREC_MEMORY_IS_OVERLAP

#define SECUREC_MEMORY_IS_OVERLAP (   dest,
  src,
  count 
)
值:
(((src) < (dest) && ((const char *)(src) + (count)) > (char *)(dest)) || \
((dest) < (src) && ((char *)(dest) + (count)) > (const char *)(src)))

◆ SECUREC_MEMORY_NO_OVERLAP

#define SECUREC_MEMORY_NO_OVERLAP (   dest,
  src,
  count 
)
值:
(((src) < (dest) && ((const char *)(src) + (count)) <= (char *)(dest)) || \
((dest) < (src) && ((char *)(dest) + (count)) <= (const char *)(src)))

◆ SECUREC_MEMSET_BARRIER

#define SECUREC_MEMSET_BARRIER   0

◆ SECUREC_MEMSET_FUNC_OPT

#define SECUREC_MEMSET_FUNC_OPT   memset

◆ SECUREC_MEMSET_INDIRECT_USE

#define SECUREC_MEMSET_INDIRECT_USE   1

◆ SECUREC_MEMSET_PREVENT_DSE

#define SECUREC_MEMSET_PREVENT_DSE (   dest,
  value,
  count 
)
值:
do { \
void *(* const volatile fn_)(void *s_, int c_, size_t n_) = SECUREC_MEMSET_FUNC_OPT; \
(void)(*fn_)((dest), (value), (count)); \
#define SECUREC_MEMSET_FUNC_OPT
Definition securecutil.h:226

◆ SECUREC_MUL_EIGHT

#define SECUREC_MUL_EIGHT (   x)    ((x) << 3U)

◆ SECUREC_MUL_SIXTEEN

#define SECUREC_MUL_SIXTEEN (   x)    ((x) << 4U)

◆ SECUREC_MUL_TEN

#define SECUREC_MUL_TEN (   x)    ((((x) << 2U) + (x)) << 1U)

◆ SECUREC_MUL_TEN_ADD_BEYOND_MAX

#define SECUREC_MUL_TEN_ADD_BEYOND_MAX (   x)    (((x) > SECUREC_MAX_WIDTH_LEN_DIV_TEN))

◆ SECUREC_STREAM_STDIN

#define SECUREC_STREAM_STDIN   stdin

◆ SECUREC_STRING_IS_OVERLAP

#define SECUREC_STRING_IS_OVERLAP (   dest,
  src,
  len 
)
值:
(((src) < (dest) && ((src) + (len)) >= (dest)) || \
((dest) < (src) && ((dest) + (len)) >= (src)))

◆ SECUREC_STRING_NO_OVERLAP

#define SECUREC_STRING_NO_OVERLAP (   dest,
  src,
  len 
)
值:
(((src) < (dest) && ((src) + (len)) < (dest)) || \
((dest) < (src) && ((dest) + (len)) < (src)))

◆ SECUREC_WARP_OUTPUT

#define SECUREC_WARP_OUTPUT   0

◆ SECUREC_WHILE_ZERO

#define SECUREC_WHILE_ZERO   SECUREC_MASK_MSVC_CRT_WARNING while (0) SECUREC_END_MASK_MSVC_CRT_WARNING