怎么会有这样的代码

来源:互联网 发布:如何修改路由器mac地址 编辑:程序博客网 时间:2024/04/26 16:59

看yuntable 0.9版本的源代码,光看逻辑了,没看注意utils.c里的内容,下面的代码有点不可思议。

/** byte to integer, is necessary when loading integer from bytes **/
public int btoi(byte *b){
        return *((int *)b);
}

/** byte to long long **/
public long long btoll(byte *b){
        return *((long long *)b);
}

/** byte to short **/
public short btos(byte *b){
        return *((short *)b);
}

 

怎么会这么写呢

原创粉丝点击