存储

C#: 小端
网络发送字节流是按大端序发送,也就是从左到右发送
边境对齐
每次只能读取一个字,不能跨行读取

以下是C代码在内存中的
cpu 每次只能读取一个字,不能跨行读取。
struct structureName {
char a b c; //1个字节
short e f;//2个字节
int g;//4个字节
};

原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/268386.html