当前位置:网站首页>Large and small end conversion
Large and small end conversion
2022-06-12 20:33:00 【Boring ah le】
// Shift mode
#define SETDWORD(buffer, val) \ do \ {
\ (buffer)[0] = (BYTE)((val) >> 24); \ (buffer)[1] = (BYTE)((val) >> 16); \ (buffer)[2] = (BYTE)((val) >> 8); \ (buffer)[3] = (BYTE)(val); \ }while(0)
// Function mode
unsigned int timestamp = htonl(g_count);// Local byte order to network byte order
// other
#define GETWORD(p) ((WORD)(p)[0]<<8 | (p)[1])
#define GETWORD_LE(p) ((WORD)(p)[1]<<8 | (p)[0])
#define GETDWORD(p) ((DWORD)(p)[0]<<24 | (DWORD)(p)[1]<<16 | (DWORD)(p)[2]<<8 | (p)[3])
#define GETDWORD_LE(p) ((DWORD)(p)[3]<<24 | (DWORD)(p)[2]<<16 | (DWORD)(p)[1]<<8 | (p)[0])
边栏推荐
- 牛客網:三數之和
- Event distribution mechanism of view
- How to download putty using alicloud image?
- 检测当前系统语言
- [leetcode 7 solution] integer inversion
- 服务端口不通排查
- Restful API interface specification
- MySQL installation and Application
- 2 R programming
- How to determine the sample size of an inspection lot in SAP QM's initial sampling strategy?
猜你喜欢

2022年春招,测试工程师全套面试攻略,一篇吃透全部技术栈(全是干货)

Wechat jsapi payment pit summary
![[generation confrontation network learning III] reading notes of Bigan paper and its principle understanding](/img/6b/0f0815e20cdf6da28793562bcaede1.png)
[generation confrontation network learning III] reading notes of Bigan paper and its principle understanding

Introduction to system mode development of rouya wechat mall

WordPress optimization tutorial makes WordPress open faster

Installation of xv6 system

A Zhu and Xu Baobao's high-rise game - difference

What is a federated index?

作用域和作用域链

Lightroom 大使系列:用 Meg Loeks 捕捉怀旧之情
随机推荐
登录mysql
Lx09 query tr list of SAP WM preliminary level
In 2022, FISCO bcos MVP recognized that the channel was open and invited you to become an open source leader
牛客网:三数之和
Alipay payment Episode 12: Crazy God and Feige Alipay payment configuration code (free resources, no thanks for taking them away)
[leetcode 7 solution] integer inversion
How can CTCM in the inspection lot system status of SAP QM be eliminated?
半路自学测试成功转行,第一份测试工作就拿10k
View 的事件分发机制
登錄mysql
The execution results of i+=2 and i++ i++ under synchronized are different
If you master these skills, you can also write a high score resume in the eyes of HR
Let Google browser fofa plug-in come alive
标量、向量、数组和矩阵
QT knowledge: QT widgets widget class [01]
MySQL + PostgreSQL batch insert update insertorupdate
Introduction to scala basic grammar (III) various operators in Scala
QT知识:Qt Widgets小部件类【01】
SAP WM preliminary transaction code lx29 - list of fixed storage bins
EDI 855 purchase order confirmation