文章分类 -  Nginx源码分析

nginx_hash表
摘要:typedef struct { //hash元素结构 void *value; //value,即某个key对应的值,即中的value u_short len; //name长度 u_... 阅读全文

posted @ 2014-09-10 15:23 菜鸟基地 阅读(462) 评论(0) 推荐(0)

关于以固定字节对齐的指针偏移位置的计算
摘要:#define ngx_align_ptr(p->d.last,NGX_ALIGNMENT) (u_char *) (((uintptr_t) (p) + ((uintptr_t) a - 1)) & ~((uintptr_t) a - 1)作用:以last开始,计算以NGX_ALIGNMENT对齐... 阅读全文

posted @ 2014-09-09 20:15 菜鸟基地 阅读(661) 评论(0) 推荐(0)

导航