📄 endian_func.h
字号:
// endian_func.h - contians endian conversion functions
// Copyright (c) 2000 Atheros Communications, Inc., All Rights Reserved */
// modification history
// --------------------
// 21Jan02 sharmat Created.
// description
// -----------
// Contains functions which converts short and long integers from big endian
// to little endian and vice versa.
#ifndef __INCendian_funch
#define __INCendian_funch
#include "wlantype.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
A_UINT32 ltob_l
(
A_UINT32 num
);
A_UINT16 ltob_s
(
A_UINT16 num
);
A_UINT32 btol_l
(
A_UINT32 num
);
A_UINT16 btol_s
(
A_UINT16 num
);
A_UINT32 swap_l
(
A_UINT32 num
);
A_UINT16 swap_s
(
A_UINT16 num
);
void swapAndCopyBlock_l
(
void *dest,
void *src,
A_UINT32 size
);
void swapBlock_l
(
void *src,
A_UINT32 size
);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // __INCendian_funch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -